home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.1 / bash.1 < prev    next >
Text File  |  1995-07-25  |  240KB  |  3,961 lines

  1.  
  2.  
  3.  
  4.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           bash - GNU Bourne-Again SHell
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           bbbbaaaasssshhhh [options] [file]
  13.  
  14.      CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
  15.           Bash is Copyright (C) 1989, 1991 by the Free Software
  16.           Foundation, Inc.
  17.  
  18.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.           BBBBaaaasssshhhh is an sssshhhh-compatible command language interpreter that
  20.           executes commands read from the standard input or from a
  21.           file.  BBBBaaaasssshhhh also incorporates useful features from the _K_o_r_n
  22.           and _C shells (kkkksssshhhh and ccccsssshhhh).
  23.  
  24.           BBBBaaaasssshhhh is ultimately intended to be a conformant
  25.           implementation of the IEEE Posix Shell and Tools
  26.           specification (IEEE Working Group 1003.2).
  27.  
  28.      OOOOPPPPTTTTIIIIOOOONNNNSSSS
  29.           In addition to the single-character shell options documented
  30.           in the description of the sssseeeetttt builtin command, bbbbaaaasssshhhh
  31.           interprets the following flags when it is invoked:
  32.  
  33.           ----cccc _s_t_r_i_n_g If the ----cccc flag is present, then commands are read
  34.                     from _s_t_r_i_n_g.  If there are arguments after the
  35.                     _s_t_r_i_n_g, they are assigned to the positional
  36.                     parameters, starting with $$$$0000.
  37.           ----iiii        If the ----iiii flag is present, the shell is
  38.                     _i_n_t_e_r_a_c_t_i_v_e.
  39.           ----ssss        If the ----ssss flag is present, or if no arguments
  40.                     remain after option processing, then commands are
  41.                     read from the standard input.  This option allows
  42.                     the positional parameters to be set when invoking
  43.                     an interactive shell.
  44.           ----         A single ---- signals the end of options and disables
  45.                     further option processing.  Any arguments after
  46.                     the ---- are treated as filenames and arguments.  An
  47.                     argument of -------- is equivalent to an argument of ----.
  48.  
  49.           BBBBaaaasssshhhh also interprets a number of multi-character options.
  50.           These options must appear on the command line before the
  51.           single-character options to be recognized.
  52.  
  53.           ----nnnnoooorrrrcccc     Do not read and execute the personal
  54.                     initialization file ~/._b_a_s_h_r_c if the shell is
  55.                     interactive.  This option is on by default if the
  56.                     shell is invoked as sssshhhh.
  57.           ----nnnnoooopppprrrrooooffffiiiilllleeee
  58.                     Do not read either the system-wide startup file
  59.                     /_e_t_c/_p_r_o_f_i_l_e or any of the personal initialization
  60.  
  61.  
  62.  
  63.      Page 1                                           (printed 7/6/95)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  71.  
  72.  
  73.  
  74.                     files ~/._b_a_s_h__p_r_o_f_i_l_e, ~/._b_a_s_h__l_o_g_i_n, or
  75.                     ~/._p_r_o_f_i_l_e.  By default, bbbbaaaasssshhhh normally reads these
  76.                     files when it is invoked as a login shell (see
  77.                     IIIINNNNVVVVOOOOCCCCAAAATTTTIIIIOOOONNNN below).
  78.           ----rrrrccccffffiiiilllleeee _f_i_l_e
  79.                     Execute commands from _f_i_l_e instead of the standard
  80.                     personal initialization file ~/._b_a_s_h_r_c, if the
  81.                     shell is interactive (see IIIINNNNVVVVOOOOCCCCAAAATTTTIIIIOOOONNNN below).
  82.           ----vvvveeeerrrrssssiiiioooonnnn  Show the version number of this instance of bbbbaaaasssshhhh
  83.                     when starting.
  84.           ----qqqquuuuiiiieeeetttt    Do not be verbose when starting up (do not show
  85.                     the shell version or any other information).  This
  86.                     is the default.
  87.           ----llllooooggggiiiinnnn    Make bbbbaaaasssshhhh act as if it had been invoked as a login
  88.                     shell.
  89.           ----nnnnoooobbbbrrrraaaacccceeeeeeeexxxxppppaaaannnnssssiiiioooonnnn
  90.                     Do not perform curly brace expansion (see BBBBrrrraaaacccceeee
  91.                     EEEExxxxppppaaaannnnssssiiiioooonnnn below).
  92.           ----nnnnoooolllliiiinnnneeeeeeeeddddiiiittttiiiinnnngggg
  93.                     Do not use the GNU _r_e_a_d_l_i_n_e library to read
  94.                     command lines if interactive.
  95.           ----ppppoooossssiiiixxxx    Change the behavior of bash where the default
  96.                     operation differs from the Posix 1003.2 standard
  97.                     to match the standard
  98.  
  99.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  100.           If arguments remain after option processing, and neither the
  101.           ----cccc nor the ----ssss option has been supplied, the first argument
  102.           is assumed to be the name of a file containing shell
  103.           commands.  If bbbbaaaasssshhhh is invoked in this fashion, $$$$0000 is set to
  104.           the name of the file, and the positional parameters are set
  105.           to the remaining arguments.  BBBBaaaasssshhhh reads and executes
  106.           commands from this file, then exits.  BBBBaaaasssshhhh''''ssss exit status is
  107.           the exit status of the last command executed in the script.
  108.  
  109.      DDDDEEEEFFFFIIIINNNNIIIITTTTIIIIOOOONNNNSSSS
  110.           bbbbllllaaaannnnkkkk
  111.                A space or tab.
  112.           wwwwoooorrrrdddd A sequence of characters considered as a single unit by
  113.                the shell.  Also known as a ttttooookkkkeeeennnn.
  114.           nnnnaaaammmmeeee A _w_o_r_d consisting only of alphanumeric characters and
  115.                underscores, and beginning with an alphabetic character
  116.                or an underscore.  Also referred to as an iiiiddddeeeennnnttttiiiiffffiiiieeeerrrr.
  117.           mmmmeeeettttaaaacccchhhhaaaarrrraaaacccctttteeeerrrr
  118.                A character that, when unquoted, separates words.  One
  119.                of the following:
  120.                ||||  &&&& ;;;; (((( )))) <<<< >>>> ssssppppaaaacccceeee ttttaaaabbbb
  121.           ccccoooonnnnttttrrrroooollll ooooppppeeeerrrraaaattttoooorrrr
  122.                A _t_o_k_e_n that performs a control function.  It is one of
  123.                the following symbols:
  124.                |||||||| &&&& &&&&&&&& ;;;; ;;;;;;;; (((( )))) |||| <<<<nnnneeeewwwwlllliiiinnnneeee>>>>
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                           (printed 7/6/95)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  137.  
  138.  
  139.  
  140.      RRRREEEESSSSEEEERRRRVVVVEEEEDDDD WWWWOOOORRRRDDDDSSSS
  141.           _R_e_s_e_r_v_e_d _w_o_r_d_s are words that have a special meaning to the
  142.           shell.  The following words are recognized as reserved when
  143.           unquoted and either the first word of a simple command (see
  144.           SSSSHHHHEEEELLLLLLLL GGGGRRRRAAAAMMMMMMMMAAAARRRR below) or the third word of a ccccaaaasssseeee or ffffoooorrrr
  145.           command:
  146.  
  147.           !!!! ccccaaaasssseeee  ddddoooo ddddoooonnnneeee eeeelllliiiiffff eeeellllsssseeee eeeessssaaaacccc ffffiiii ffffoooorrrr ffffuuuunnnnccccttttiiiioooonnnn iiiiffff iiiinnnn sssseeeelllleeeecccctttt
  148.           tttthhhheeeennnn uuuunnnnttttiiiillll wwwwhhhhiiiilllleeee {{{{ }}}}
  149.  
  150.      SSSSHHHHEEEELLLLLLLL GGGGRRRRAAAAMMMMMMMMAAAARRRR
  151.         SSSSiiiimmmmpppplllleeee CCCCoooommmmmmmmaaaannnnddddssss
  152.           A _s_i_m_p_l_e _c_o_m_m_a_n_d is a sequence of optional variable
  153.           assignments followed by _b_l_a_n_k-separated words and
  154.           redirections, and terminated by a _c_o_n_t_r_o_l _o_p_e_r_a_t_o_r.  The
  155.           first word specifies the command to be executed.  The
  156.           remaining words are passed as arguments to the invoked
  157.           command.
  158.  
  159.           The return value of a _s_i_m_p_l_e _c_o_m_m_a_n_d is its exit status, or
  160.           128+_n if the command is terminated by signal _n.
  161.  
  162.         PPPPiiiippppeeeelllliiiinnnneeeessss
  163.           A _p_i_p_e_l_i_n_e is a sequence of one or more commands separated
  164.           by the character ||||.  The format for a pipeline is:
  165.  
  166.                [ ! ] _c_o_m_m_a_n_d [ |||| _c_o_m_m_a_n_d_2 ... ]
  167.  
  168.           The standard output of _c_o_m_m_a_n_d is connected to the standard
  169.           input of _c_o_m_m_a_n_d_2.  This connection is performed before any
  170.           redirections specified by the command (see RRRREEEEDDDDIIIIRRRREEEECCCCTTTTIIIIOOOONNNN
  171.           below).
  172.  
  173.           If the reserved word !!!! precedes a pipeline, the exit status
  174.           of that pipeline is the logical NOT of the exit status of
  175.           the last command.  Otherwise, the status of the pipeline is
  176.           the exit status of the last command.  The shell waits for
  177.           all commands in the pipeline to terminate before returning a
  178.           value.
  179.  
  180.           Each command in a pipeline is executed as a separate process
  181.           (i.e., in a subshell).
  182.  
  183.         LLLLiiiissssttttssss
  184.           A _l_i_s_t is a sequence of one or more pipelines separated by
  185.           one of the operators ;;;;, &&&&, &&&&&&&&, or ||||||||, and terminated by one
  186.           of ;;;;, &&&&, or <<<<nnnneeeewwwwlllliiiinnnneeee>>>>.
  187.  
  188.           Of these list operators, &&&&&&&& and |||||||| have equal precedence,
  189.           followed by ;;;; and &&&&,,,, which have equal precedence.
  190.  
  191.           If a command is terminated by the control operator &&&&, the
  192.  
  193.  
  194.  
  195.      Page 3                                           (printed 7/6/95)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  203.  
  204.  
  205.  
  206.           shell executes the command in the _b_a_c_k_g_r_o_u_n_d in a subshell.
  207.           The shell does not wait for the command to finish, and the
  208.           return status is 0.  Commands separated by a ;;;; are executed
  209.           sequentially; the shell waits for each command to terminate
  210.           in turn.  The return status is the exit status of the last
  211.           command executed.
  212.  
  213.           The control operators &&&&&&&& and |||||||| denote AND lists and OR
  214.           lists, respectively.  An AND list has the form
  215.  
  216.                _c_o_m_m_a_n_d &&&&&&&& _c_o_m_m_a_n_d_2
  217.  
  218.           _c_o_m_m_a_n_d_2 is executed if, and only if, _c_o_m_m_a_n_d returns an
  219.           exit status of zero.
  220.  
  221.           An OR list has the form
  222.  
  223.                _c_o_m_m_a_n_d |||||||| _c_o_m_m_a_n_d_2
  224.  
  225.           _c_o_m_m_a_n_d_2 is executed if and only if _c_o_m_m_a_n_d returns a
  226.           non-zero exit status.  The return status of AND and OR lists
  227.           is the exit status of the last command executed in the list.
  228.  
  229.         CCCCoooommmmppppoooouuuunnnndddd CCCCoooommmmmmmmaaaannnnddddssss
  230.           A _c_o_m_p_o_u_n_d _c_o_m_m_a_n_d is one of the following:
  231.  
  232.           (_l_i_s_t)
  233.                _l_i_s_t is executed in a subshell.  Variable assignments
  234.                and builtin commands that affect the shell's
  235.                environment do not remain in effect after the command
  236.                completes.  The return status is the exit status of
  237.                _l_i_s_t.
  238.  
  239.           { _l_i_s_t; }
  240.                _l_i_s_t is simply executed in the current shell
  241.                environment.  This is known as a _g_r_o_u_p _c_o_m_m_a_n_d.  The
  242.                return status is the exit status of _l_i_s_t.
  243.  
  244.           ffffoooorrrr _n_a_m_e [ iiiinnnn _w_o_r_d; ] ddddoooo _l_i_s_t ; ddddoooonnnneeee
  245.                The list of words following iiiinnnn is expanded, generating
  246.                a list of items.  The variable _n_a_m_e is set to each
  247.                element of this list in turn, and _l_i_s_t is executed each
  248.                time.  If the iiiinnnn _w_o_r_d is omitted, the ffffoooorrrr command
  249.                executes _l_i_s_t once for each positional parameter that
  250.                is set (see PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS below).
  251.  
  252.           sssseeeelllleeeecccctttt _n_a_m_e [ iiiinnnn _w_o_r_d; ] ddddoooo _l_i_s_t ; ddddoooonnnneeee
  253.                The list of words following iiiinnnn is expanded, generating
  254.                a list of items.  The set of expanded words is printed
  255.                on the standard error, each preceded by a number.  If
  256.                the iiiinnnn _w_o_r_d is omitted, the positional parameters are
  257.                printed (see PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS below).  The PPPPSSSS3333 prompt is then
  258.  
  259.  
  260.  
  261.      Page 4                                           (printed 7/6/95)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  269.  
  270.  
  271.  
  272.                displayed and a line read from the standard input.  If
  273.                the line consists of the number corresponding to one of
  274.                the displayed words, then the value of _n_a_m_e is set to
  275.                that word.  If the line is empty, the words and prompt
  276.                are displayed again.  If EOF is read, the command
  277.                completes.  Any other value read causes _n_a_m_e to be set
  278.                to null.  The line read is saved in the variable RRRREEEEPPPPLLLLYYYY.
  279.                The _l_i_s_t is executed after each selection until a bbbbrrrreeeeaaaakkkk
  280.                or rrrreeeettttuuuurrrrnnnn command is executed.  The exit status of
  281.                sssseeeelllleeeecccctttt is the exit status of the last command executed
  282.                in _l_i_s_t, or zero if no commands were executed.
  283.  
  284.           ccccaaaasssseeee _w_o_r_d iiiinnnn [ _p_a_t_t_e_r_n [ |||| _p_a_t_t_e_r_n ] ... ) _l_i_s_t ;; ] ... eeeessssaaaacccc
  285.                A ccccaaaasssseeee command first expands _w_o_r_d, and tries to match
  286.                it against each _p_a_t_t_e_r_n in turn, using the same
  287.                matching rules as for pathname expansion (see PPPPaaaatttthhhhnnnnaaaammmmeeee
  288.                EEEExxxxppppaaaannnnssssiiiioooonnnn below).  When a match is found, the
  289.                corresponding _l_i_s_t is executed.  After the first match,
  290.                no subsequent matches are attempted.  The exit status
  291.                is zero if no patterns are matches.  Otherwise, it is
  292.                the exit status of the last command executed in _l_i_s_t.
  293.  
  294.           iiiiffff _l_i_s_t tttthhhheeeennnn _l_i_s_t [ eeeelllliiiiffff _l_i_s_t tttthhhheeeennnn _l_i_s_t ] ... [ eeeellllsssseeee _l_i_s_t ] ffffiiii
  295.                The iiiiffff _l_i_s_t is executed.  If its exit status is zero,
  296.                the tttthhhheeeennnn _l_i_s_t is executed.  Otherwise, each eeeelllliiiiffff _l_i_s_t
  297.                is executed in turn, and if its exit status is zero,
  298.                the corresponding tttthhhheeeennnn _l_i_s_t is executed and the command
  299.                completes.  Otherwise, the eeeellllsssseeee _l_i_s_t is executed, if
  300.                present.  The exit status is the exit status of the
  301.                last command executed, or zero if no condition tested
  302.                true.
  303.  
  304.           wwwwhhhhiiiilllleeee _l_i_s_t ddddoooo _l_i_s_t ddddoooonnnneeee
  305.           uuuunnnnttttiiiillll _l_i_s_t ddddoooo _l_i_s_t ddddoooonnnneeee
  306.                The wwwwhhhhiiiilllleeee command continuously executes the ddddoooo _l_i_s_t as
  307.                long as the last command in _l_i_s_t returns an exit status
  308.                of zero.  The uuuunnnnttttiiiillll command is identical to the wwwwhhhhiiiilllleeee
  309.                command, except that the test is negated; the ddddoooo _l_i_s_t
  310.                is executed as long as the last command in _l_i_s_t returns
  311.                a non-zero exit status.  The exit status of the wwwwhhhhiiiilllleeee
  312.                and uuuunnnnttttiiiillll commands is the exit status of the last ddddoooo
  313.                _l_i_s_t command executed, or zero if none was executed.
  314.  
  315.           [ ffffuuuunnnnccccttttiiiioooonnnn ] _n_a_m_e () { _l_i_s_t; }
  316.                This defines a function named _n_a_m_e.  The _b_o_d_y of the
  317.                function is the _l_i_s_t of commands between { and }.  This
  318.                list is executed whenever _n_a_m_e is specified as the name
  319.                of a simple command.  The exit status of a function is
  320.                the exit status of the last command executed in the
  321.                body.  (See FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNNSSSS below.)
  322.  
  323.      CCCCOOOOMMMMMMMMEEEENNNNTTTTSSSS
  324.  
  325.  
  326.  
  327.      PPPPaaaaggggeeee 5555                                           ((((pppprrrriiiinnnntttteeeedddd 7777////6666////99995555))))
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  335.  
  336.  
  337.  
  338.           In a non-interactive shell, or an interactive shell in which
  339.           the ----oooo iiiinnnntttteeeerrrraaaaccccttttiiiivvvveeee----ccccoooommmmmmmmeeeennnnttttssss option to the sssseeeetttt builtin is
  340.           enabled, a word beginning with #### causes that word and all
  341.           remaining characters on that line to be ignored.  An
  342.           interactive shell without the ----oooo iiiinnnntttteeeerrrraaaaccccttttiiiivvvveeee----ccccoooommmmmmmmeeeennnnttttssss option
  343.           enabled does not allow comments.
  344.  
  345.      QQQQUUUUOOOOTTTTIIIINNNNGGGG
  346.           _Q_u_o_t_i_n_g is used to remove the special meaning of certain
  347.           characters or words to the shell.  Quoting can be used to
  348.           disable special treatment for special characters, to prevent
  349.           reserved words from being recognized as such, and to prevent
  350.           parameter expansion.
  351.  
  352.           Each of the _m_e_t_a_c_h_a_r_a_c_t_e_r_s listed above under DDDDEEEEFFFFIIIINNNNIIIITTTTIIIIOOOONNNNSSSS
  353.           has special meaning to the shell and must be quoted if they
  354.           are to represent themselves.  There are three quoting
  355.           mechanisms: the _e_s_c_a_p_e _c_h_a_r_a_c_t_e_r, single quotes, and double
  356.           quotes.
  357.  
  358.           A non-quoted backslash (\\\\) is the _e_s_c_a_p_e _c_h_a_r_a_c_t_e_r.  It
  359.           preserves the literal value of the next character that
  360.           follows, with the exception of <newline>.  If a \\\\<newline>
  361.           pair appears, and the backslash is not quoted, the
  362.           \\\\<newline> is treated as a line continuation (that is, it is
  363.           effectively ignored).
  364.  
  365.           Enclosing characters in single quotes preserves the literal
  366.           value of each character within the quotes.  A single quote
  367.           may not occur between single quotes, even when preceded by a
  368.           backslash.
  369.  
  370.           Enclosing characters in double quotes preserves the literal
  371.           value of all characters within the quotes, with the
  372.           exception of $$$$, ````, and \\\\.  The characters $$$$ and ```` retain
  373.           their special meaning within double quotes.  The backslash
  374.           retains its special meaning only when followed by one of the
  375.           following characters: $$$$, ````, """", \\\\, or <<<<nnnneeeewwwwlllliiiinnnneeee>>>>.  A double
  376.           quote may be quoted within double quotes by preceding it
  377.           with a backslash.
  378.  
  379.           The special parameters **** and @@@@ have special meaning when in
  380.           double quotes (see PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS below).
  381.  
  382.      PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  383.           A _p_a_r_a_m_e_t_e_r is an entity that stores values, somewhat like a
  384.           variable in a conventional programming language.  It can be
  385.           a _n_a_m_e, a number, or one of the special characters listed
  386.           below under SSSSppppeeeecccciiiiaaaallll PPPPaaaarrrraaaammmmeeeetttteeeerrrrssss.  For the shell's purposes, a
  387.           _v_a_r_i_a_b_l_e is a parameter denoted by a _n_a_m_e.
  388.  
  389.           A parameter is set if it has been assigned a value.  The
  390.  
  391.  
  392.  
  393.      Page 6                                           (printed 7/6/95)
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  401.  
  402.  
  403.  
  404.           null string is a valid value.  Once a variable is set, it
  405.           may be unset only by using the uuuunnnnsssseeeetttt builtin command (see
  406.           SSSSHHHHEEEELLLLLLLL BBBBUUUUIIIILLLLTTTTIIIINNNN CCCCOOOOMMMMMMMMAAAANNNNDDDDSSSS below).
  407.  
  408.           A _v_a_r_i_a_b_l_e may be assigned to by a statement of the form
  409.  
  410.                _n_a_m_e=[_v_a_l_u_e]
  411.  
  412.           If _v_a_l_u_e is not given, the variable is assigned the null
  413.           string.  All _v_a_l_u_e_s undergo tilde expansion, parameter and
  414.           variable expansion, command substitution, arithmetic
  415.           expansion, and quote removal.  If the variable has its ----iiii
  416.           attribute set (see ddddeeeeccccllllaaaarrrreeee below in SSSSHHHHEEEELLLLLLLL BBBBUUUUIIIILLLLTTTTIIIINNNN CCCCOOOOMMMMMMMMAAAANNNNDDDDSSSS)
  417.           then _v_a_l_u_e is subject to arithmetic expansion even if the
  418.           $[...] syntax does not appear.  Word splitting is not
  419.           performed, with the exception of """"$$$$@@@@"""" as explained below
  420.           under SSSSppppeeeecccciiiiaaaallll PPPPaaaarrrraaaammmmeeeetttteeeerrrrssss.  Pathname expansion is not
  421.           performed.
  422.  
  423.         PPPPoooossssiiiittttiiiioooonnnnaaaallll PPPPaaaarrrraaaammmmeeeetttteeeerrrrssss
  424.           A _p_o_s_i_t_i_o_n_a_l _p_a_r_a_m_e_t_e_r is a parameter denoted by one or more
  425.           digits, other than the single digit 0.  Positional
  426.           parameters are assigned from the shell's arguments when it
  427.           is invoked, and may be reassigned using the sssseeeetttt builtin
  428.           command.  Positional parameters may not be assigned to with
  429.           assignment statements.  The positional parameters are
  430.           temporarily replaced when a shell function is executed (see
  431.           FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNNSSSS below).
  432.  
  433.           When a positional parameter consisting of more than a single
  434.           digit is expanded, it must be enclosed in braces (see
  435.           EEEEXXXXPPPPAAAANNNNSSSSIIIIOOOONNNN below).
  436.  
  437.         SSSSppppeeeecccciiiiaaaallll PPPPaaaarrrraaaammmmeeeetttteeeerrrrssss
  438.           The shell treats several parameters specially.  These
  439.           parameters may only be referenced; assignment to them is not
  440.           allowed.
  441.           ****    Expands to the positional parameters, starting from
  442.                one.  When the expansion occurs within double quotes,
  443.                it expands to a single word with the value of each
  444.                parameter separated by the first character of the IIIIFFFFSSSS
  445.                special variable.  That is, ``$$$$****'' is equivalent to
  446.                ``$$$$1111_c$$$$2222_c............'', where _c is the first character of the
  447.                value of the IIIIFFFFSSSS variable.  If IIIIFFFFSSSS is null or unset,
  448.                the parameters are separated by spaces.
  449.           @@@@    Expands to the positional parameters, starting from
  450.                one.  When the expansion occurs within double quotes,
  451.                each parameter expands as a separate word.  That is, ``
  452.                $$$$@@@@'' is equivalent to ``$$$$1111'' ``$$$$2222'' ...  When there are
  453.                no positional parameters, ``$$$$@@@@'' and $$$$@@@@ expand to
  454.                nothing (i.e., they are removed).
  455.           ####    Expands to the number of positional parameters in
  456.  
  457.  
  458.  
  459.      Page 7                                           (printed 7/6/95)
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  467.  
  468.  
  469.  
  470.                decimal.
  471.           ????    Expands to the status of the most recently executed
  472.                foreground pipeline.
  473.           ----    Expands to the current option flags as specified upon
  474.                invocation, by the sssseeeetttt builtin command, or those set by
  475.                the shell itself (such as the ----iiii flag).
  476.           $$$$    Expands to the process ID of the shell.  In a ()
  477.                subshell, it expands to the process ID of the current
  478.                shell, not the subshell.
  479.           !!!!    Expands to the process ID of the most recently executed
  480.                background (asynchronous) command.
  481.           0000    Expands to the name of the shell or shell script.  This
  482.                is set at shell initialization.  If bbbbaaaasssshhhh is invoked
  483.                with a file of commands, $$$$0000 is set to the name of that
  484.                file.  If bbbbaaaasssshhhh is started with the ----cccc option, then $$$$0000
  485.                is set to the first argument after the string to be
  486.                executed, if one is present.  Otherwise, it is set to
  487.                the pathname used to invoke bbbbaaaasssshhhh, as given by argument
  488.                zero.
  489.           ____    Expands to the last argument to the previous command,
  490.                after expansion.  Also set to the full pathname of each
  491.                command executed and placed in the environment exported
  492.                to that command.
  493.  
  494.         SSSShhhheeeellllllll VVVVaaaarrrriiiiaaaabbbblllleeeessss
  495.           The following variables are set by the shell:
  496.  
  497.           PPPPPPPPIIIIDDDD The process ID of the shell's parent.
  498.           PPPPWWWWDDDD  The current working directory as set by the ccccdddd command.
  499.           OOOOLLLLDDDDPPPPWWWWDDDD
  500.                The previous working directory as set by the ccccdddd
  501.                command.
  502.           RRRREEEEPPPPLLLLYYYY
  503.                Set to the line of input read by the rrrreeeeaaaadddd builtin
  504.                command when no arguments are supplied.
  505.           UUUUIIIIDDDD  Expands to the user ID of the current user, initialized
  506.                at shell startup.
  507.           EEEEUUUUIIIIDDDD Expands to the effective user ID of the current user,
  508.                initialized at shell startup.
  509.           BBBBAAAASSSSHHHH Expands to the full pathname used to invoke this
  510.                instance of bbbbaaaasssshhhh.
  511.           BBBBAAAASSSSHHHH____VVVVEEEERRRRSSSSIIIIOOOONNNN
  512.                Expands to the version number of this instance of bbbbaaaasssshhhh.
  513.           SSSSHHHHLLLLVVVVLLLL
  514.                Incremented by one each time an instance of bbbbaaaasssshhhh is
  515.                started.
  516.           RRRRAAAANNNNDDDDOOOOMMMM
  517.                Each time this parameter is referenced, a random
  518.                integer is generated.  The sequence of random numbers
  519.                may be initialized by assigning a value to RRRRAAAANNNNDDDDOOOOMMMM.  If
  520.                RRRRAAAANNNNDDDDOOOOMMMM is unset, it loses its special properties, even
  521.                if it is subsequently reset.
  522.  
  523.  
  524.  
  525.      Page 8                                           (printed 7/6/95)
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  533.  
  534.  
  535.  
  536.           SSSSEEEECCCCOOOONNNNDDDDSSSS
  537.                Each time this parameter is referenced, the number of
  538.                seconds since shell invocation is returned.  If a value
  539.                is assigned to SSSSEEEECCCCOOOONNNNDDDDSSSS, the value returned upon
  540.                subsequent references is the number of seconds since
  541.                the assignment plus the value assigned.  If SSSSEEEECCCCOOOONNNNDDDDSSSS is
  542.                unset, it loses its special properties, even if it is
  543.                subsequently reset.
  544.           LLLLIIIINNNNEEEENNNNOOOO
  545.                Each time this parameter is referenced, the shell
  546.                substitutes a decimal number representing the current
  547.                sequential line number (starting with 1) within a
  548.                script or function.  When not in a script or function,
  549.                the value substituted is not guaranteed to be
  550.                meaningful.  When in a function, the value is not the
  551.                number of the source line that the command appears on
  552.                (that information has been lost by the time the
  553.                function is executed), but is an approximation of the
  554.                number of _s_i_m_p_l_e _c_o_m_m_a_n_d_s executed in the current
  555.                function.  If LLLLIIIINNNNEEEENNNNOOOO is unset, it loses its special
  556.                properties, even if it is subsequently reset.
  557.           HHHHIIIISSSSTTTTCCCCMMMMDDDD
  558.                The history number, or index in the history list, of
  559.                the current command.  If HHHHIIIISSSSTTTTCCCCMMMMDDDD is unset, it loses its
  560.                special properties, even if it is subsequently reset.
  561.           OOOOPPPPTTTTAAAARRRRGGGG
  562.                The value of the last option argument processed by the
  563.                ggggeeeettttooooppppttttssss builtin command (see SSSSHHHHEEEELLLLLLLL BBBBUUUUIIIILLLLTTTTIIIINNNN CCCCOOOOMMMMMMMMAAAANNNNDDDDSSSS
  564.                below).
  565.           OOOOPPPPTTTTIIIINNNNDDDD
  566.                The index of the next argument to be processed by the
  567.                ggggeeeettttooooppppttttssss builtin command (see SSSSHHHHEEEELLLLLLLL BBBBUUUUIIIILLLLTTTTIIIINNNN CCCCOOOOMMMMMMMMAAAANNNNDDDDSSSS
  568.                below).
  569.           HHHHOOOOSSSSTTTTTTTTYYYYPPPPEEEE
  570.                Automatically set to a string that uniquely describes
  571.                the type of machine on which bbbbaaaasssshhhh is executing.  The
  572.                default is system-dependent.
  573.           OOOOSSSSTTTTYYYYPPPPEEEE
  574.                Automatically set to a string that describes the
  575.                operating system on which bbbbaaaasssshhhh is executing.  The
  576.                default is system-dependent.
  577.  
  578.           The following variables are used by the shell.  In some
  579.           cases, bbbbaaaasssshhhh assigns a default value to a variable; these
  580.           cases are noted below.
  581.  
  582.           IIIIFFFFSSSS  The _I_n_t_e_r_n_a_l _F_i_e_l_d _S_e_p_a_r_a_t_o_r that is used for word
  583.                splitting after expansion and to split lines into words
  584.                with the rrrreeeeaaaadddd builtin command.  The default value is
  585.                ``<space><tab><newline>''.
  586.           PPPPAAAATTTTHHHH The search path for commands.  It is a colon-separated
  587.                list of directories in which the shell looks for
  588.  
  589.  
  590.  
  591.      Page 9                                           (printed 7/6/95)
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  599.  
  600.  
  601.  
  602.                commands (see CCCCOOOOMMMMMMMMAAAANNNNDDDD EEEEXXXXEEEECCCCUUUUTTTTIIIIOOOONNNN below).  The default
  603.                path is system-dependent, and is set by the
  604.                administrator who installs bbbbaaaasssshhhh.  A common value is
  605.                ``/usr/gnu/bin:/usr/local/bin:/usr/ucb:/bin:/usr/bin:.''.
  606.           HHHHOOOOMMMMEEEE The home directory of the current user; the default
  607.                argument for the ccccdddd builtin command.
  608.           CCCCDDDDPPPPAAAATTTTHHHH
  609.                The search path for the ccccdddd command.  This is a colon-
  610.                separated list of directories in which the shell looks
  611.                for destination directories specified by the ccccdddd
  612.                command.  A sample value is ``.:~:/usr''.
  613.           EEEENNNNVVVV  If this parameter is set when bbbbaaaasssshhhh is executing a shell
  614.                script, its value is interpreted as a filename
  615.                containing commands to initialize the shell, as in
  616.                ._b_a_s_h_r_c.  The value of EEEENNNNVVVV is subjected to parameter
  617.                expansion, command substitution, and arithmetic
  618.                expansion before being interpreted as a pathname.  PPPPAAAATTTTHHHH
  619.                is not used to search for the resultant pathname.
  620.           MMMMAAAAIIIILLLL If this parameter is set to a filename and the MMMMAAAAIIIILLLLPPPPAAAATTTTHHHH
  621.                variable is not set, bbbbaaaasssshhhh informs the user of the
  622.                arrival of mail in the specified file.
  623.           MMMMAAAAIIIILLLLCCCCHHHHEEEECCCCKKKK
  624.                Specifies how often (in seconds) bbbbaaaasssshhhh checks for mail.
  625.                The default is 60 seconds.  When it is time to check
  626.                for mail, the shell does so before prompting.  If this
  627.                variable is unset, the shell disables mail checking.
  628.           MMMMAAAAIIIILLLLPPPPAAAATTTTHHHH
  629.                A colon-separated list of pathnames to be checked for
  630.                mail. The message to be printed may be specified by
  631.                separating the pathname from the message with a `?'.
  632.                $_ stands for the name of the current mailfile.
  633.                Example:
  634.                MMMMAAAAIIIILLLLPPPPAAAATTTTHHHH='/usr/spool/mail/bfox?"You have
  635.                mail":~/shell-mail?"$_ has mail!"'
  636.                BBBBaaaasssshhhh supplies a default value for this variable, but
  637.                the location of the user mail files that it uses is
  638.                system dependent (e.g., /usr/spool/mail/$$$$UUUUSSSSEEEERRRR).
  639.           MMMMAAAAIIIILLLL____WWWWAAAARRRRNNNNIIIINNNNGGGG
  640.                If set, and a file that bbbbaaaasssshhhh is checking for mail has
  641.                been accessed since the last time it was checked, the
  642.                message ``The mail in _m_a_i_l_f_i_l_e has been read'' is
  643.                printed.
  644.           PPPPSSSS1111  The value of this parameter is expanded (see PPPPRRRROOOOMMMMPPPPTTTTIIIINNNNGGGG
  645.                below) and used as the primary prompt string.  The
  646.                default value is ``bbbbaaaasssshhhh\\\\$$$$ ''.
  647.           PPPPSSSS2222  The value of this parameter is expanded and used as the
  648.                secondary prompt string.  The default is ``>>>> ''.
  649.           PPPPSSSS3333  The value of this parameter is used as the prompt for
  650.                the _s_e_l_e_c_t command (see SSSSHHHHEEEELLLLLLLL GGGGRRRRAAAAMMMMMMMMAAAARRRR above).
  651.           PPPPSSSS4444  The value of this parameter is expanded and the value
  652.                is printed before each command bbbbaaaasssshhhh displays during an
  653.                execution trace.  The first character of PPPPSSSS4444 is
  654.  
  655.  
  656.  
  657.      Page 10                                          (printed 7/6/95)
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  665.  
  666.  
  667.  
  668.                replicated multiple times, as necessary, to indicate
  669.                multiple levels of indirection.  The default is ``++++ ''.
  670.           HHHHIIIISSSSTTTTSSSSIIIIZZZZEEEE
  671.                The number of commands to remember in the command
  672.                history (see HHHHIIIISSSSTTTTOOOORRRRYYYY below).  The default value is 500.
  673.           HHHHIIIISSSSTTTTFFFFIIIILLLLEEEE
  674.                The name of the file in which command history is saved.
  675.                (See HHHHIIIISSSSTTTTOOOORRRRYYYY below.)  The default value is
  676.                ~/._b_a_s_h__h_i_s_t_o_r_y.  If unset, the command history is not
  677.                saved when an interactive shell exits.
  678.           HHHHIIIISSSSTTTTFFFFIIIILLLLEEEESSSSIIIIZZZZEEEE
  679.                The maximum number of lines contained in the history
  680.                file.  When this variable is assigned a value, the
  681.                history file is truncated, if necessary, to contain no
  682.                more than that number of lines.  The default value is
  683.                500.
  684.           OOOOPPPPTTTTEEEERRRRRRRR
  685.                If set to the value 1, bbbbaaaasssshhhh displays error messages
  686.                generated by the ggggeeeettttooooppppttttssss builtin command (see SSSSHHHHEEEELLLLLLLL
  687.                BBBBUUUUIIIILLLLTTTTIIIINNNN CCCCOOOOMMMMMMMMAAAANNNNDDDDSSSS below).  OOOOPPPPTTTTEEEERRRRRRRR is initialized to 1
  688.                each time the shell is invoked or a shell script is
  689.                executed.
  690.           PPPPRRRROOOOMMMMPPPPTTTT____CCCCOOOOMMMMMMMMAAAANNNNDDDD
  691.                If set, the value is executed as a command prior to
  692.                issuing each primary prompt.
  693.           IIIIGGGGNNNNOOOORRRREEEEEEEEOOOOFFFF
  694.                Controls the action of the shell on receipt of an EEEEOOOOFFFF
  695.                character as the sole input.  If set, the value is the
  696.                number of consecutive EEEEOOOOFFFF characters typed as the first
  697.                characters on an input line before bbbbaaaasssshhhh exits.  If the
  698.                variable exists but does not have a numeric value, or
  699.                has no value, the default value is 10.  If it does not
  700.                exist, EEEEOOOOFFFF signifies the end of input to the shell.
  701.                This is only in effect for interactive shells.
  702.           TTTTMMMMOOOOUUUUTTTT
  703.                If set to a value greater than zero, the value is
  704.                interpreted as the number of seconds to wait for input
  705.                after issuing the primary prompt.  BBBBaaaasssshhhh terminates
  706.                after waiting for that number of seconds if input does
  707.                not arrive.
  708.           FFFFCCCCEEEEDDDDIIIITTTT
  709.                The default editor for the ffffcccc builtin command.
  710.           FFFFIIIIGGGGNNNNOOOORRRREEEE
  711.                A colon-separated list of suffixes to ignore when
  712.                performing filename completion (see RRRREEEEAAAADDDDLLLLIIIINNNNEEEE below).  A
  713.                filename whose suffix matches one of the entries in
  714.                FFFFIIIIGGGGNNNNOOOORRRREEEE is excluded from the list of matched filenames.
  715.                A sample value is ``.o:~''.
  716.           IIIINNNNPPPPUUUUTTTTRRRRCCCC
  717.                The filename for the readline startup file, overriding
  718.                the default of ~/._i_n_p_u_t_r_c (see RRRREEEEAAAADDDDLLLLIIIINNNNEEEE below).
  719.           nnnnoooottttiiiiffffyyyy
  720.  
  721.  
  722.  
  723.      Page 11                                          (printed 7/6/95)
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  731.  
  732.  
  733.  
  734.                If set, bbbbaaaasssshhhh reports terminated background jobs
  735.                immediately, rather than waiting until before printing
  736.                the next primary prompt (see also the ----bbbb option to the
  737.                sssseeeetttt builtin command).
  738.           hhhhiiiissssttttoooorrrryyyy____ccccoooonnnnttttrrrroooollll
  739.           HHHHIIIISSSSTTTTCCCCOOOONNNNTTTTRRRROOOOLLLL
  740.                If set to a value of _i_g_n_o_r_e_s_p_a_c_e, lines which begin
  741.                with a ssssppppaaaacccceeee character are not entered on the history
  742.                list.  If set to a value of _i_g_n_o_r_e_d_u_p_s, lines matching
  743.                the last history line are not entered.  A value of
  744.                _i_g_n_o_r_e_b_o_t_h combines the two options.  If unset, or if
  745.                set to any other value than those above, all lines read
  746.                by the parser are saved on the history list.
  747.  
  748.           ccccoooommmmmmmmaaaannnndddd____oooorrrriiiieeeennnntttteeeedddd____hhhhiiiissssttttoooorrrryyyy
  749.                If set, bbbbaaaasssshhhh attempts to save all lines of a
  750.                multiple-line command in the same history entry.  This
  751.                allows easy re-editing of multi-line commands.
  752.  
  753.           gggglllloooobbbb____ddddooootttt____ffffiiiilllleeeennnnaaaammmmeeeessss
  754.                If set, bbbbaaaasssshhhh includes filenames beginning with a `.' in
  755.                the results of pathname expansion.
  756.  
  757.           aaaalllllllloooowwww____nnnnuuuullllllll____gggglllloooobbbb____eeeexxxxppppaaaannnnssssiiiioooonnnn
  758.                If set, bbbbaaaasssshhhh allows pathname patterns which match no
  759.                files (see PPPPaaaatttthhhhnnnnaaaammmmeeee EEEExxxxppppaaaannnnssssiiiioooonnnn below) to expand to a
  760.                null string, rather than themselves.
  761.  
  762.           hhhhiiiissssttttcccchhhhaaaarrrrssss
  763.                The two or three characters which control history
  764.                expansion and tokenization (see HHHHIIIISSSSTTTTOOOORRRRYYYY EEEEXXXXPPPPAAAANNNNSSSSIIIIOOOONNNN
  765.                below).  The first character is the _h_i_s_t_o_r_y _e_x_p_a_n_s_i_o_n
  766.                _c_h_a_r_a_c_t_e_r, that is, the character which signals the
  767.                start of a history expansion, normally `!!!!'.  The second
  768.                character is the _q_u_i_c_k _s_u_b_s_t_i_t_u_t_i_o_n character, which is
  769.                used as shorthand for re-running the previous command
  770.                entered, substituting one string for another in the
  771.                command.  The default is `^^^^'.  The optional third
  772.                character is the character which signifies that the
  773.                remainder of the line is a comment, when found as the
  774.                first character of a word, normally `####'.  The history
  775.                comment character causes history substitution to be
  776.                skipped for the remaining words on the line.  It does
  777.                not necessarily cause the shell parser to treat the
  778.                rest of the line as a comment.
  779.  
  780.           nnnnoooolllliiiinnnnkkkkssss
  781.                If set, the shell does not follow symbolic links when
  782.                executing commands that change the current working
  783.                directory.  It uses the physical directory structure
  784.                instead.  By default, bbbbaaaasssshhhh follows the logical chain of
  785.                directories when performing commands which change the
  786.  
  787.  
  788.  
  789.      Page 12                                          (printed 7/6/95)
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  797.  
  798.  
  799.  
  800.                current directory, such as ccccdddd.  See also the
  801.                description of the ----PPPP option to the sssseeeetttt builtin ( SSSSHHHHEEEELLLLLLLL
  802.                BBBBUUUUIIIILLLLTTTTIIIINNNN CCCCOOOOMMMMMMMMAAAANNNNDDDDSSSS below).
  803.           hhhhoooossssttttnnnnaaaammmmeeee____ccccoooommmmpppplllleeeettttiiiioooonnnn____ffffiiiilllleeee
  804.           HHHHOOOOSSSSTTTTFFFFIIIILLLLEEEE
  805.                Contains the name of a file in the same format as
  806.                /_e_t_c/_h_o_s_t_s that should be read when the shell needs to
  807.                complete a hostname.  The file may be changed
  808.                interactively; the next time hostname completion is
  809.                attempted bbbbaaaasssshhhh adds the contents of the new file to the
  810.                already existing database.
  811.  
  812.           nnnnoooocccclllloooobbbbbbbbeeeerrrr
  813.                If set, bbbbaaaasssshhhh does not overwrite an existing file with
  814.                the >>>>, >>>>&&&&, and <<<<>>>> redirection operators.  This variable
  815.                may be overridden when creating output files by using
  816.                the redirection operator >>>>|||| instead of >>>> (see also the
  817.                ----CCCC option to the sssseeeetttt builtin command).
  818.  
  819.           aaaauuuuttttoooo____rrrreeeessssuuuummmmeeee
  820.                This variable controls how the shell interacts with the
  821.                user and job control.  If this variable is set, single
  822.                word simple commands without redirections are treated
  823.                as candidates for resumption of an existing stopped
  824.                job.  There is no ambiguity allowed; if there is more
  825.                than one job beginning with the string typed, the job
  826.                most recently accessed is selected.  The _n_a_m_e of a
  827.                stopped job, in this context, is the command line used
  828.                to start it.  If set to the value _e_x_a_c_t, the string
  829.                supplied must match the name of a stopped job exactly;
  830.                if set to _s_u_b_s_t_r_i_n_g, the string supplied needs to match
  831.                a substring of the name of a stopped job.  The
  832.                _s_u_b_s_t_r_i_n_g value provides functionality analogous to the
  833.                %%%%???? job id (see JJJJOOOOBBBB CCCCOOOONNNNTTTTRRRROOOOLLLL below).  If set to any other
  834.                value, the supplied string must be a prefix of a
  835.                stopped job's name; this provides functionality
  836.                analogous to the %%%% job id.
  837.  
  838.           nnnnoooo____eeeexxxxiiiitttt____oooonnnn____ffffaaaaiiiilllleeeedddd____eeeexxxxeeeecccc
  839.                If this variable exists, a non-interactive shell will
  840.                not exit if it cannot execute the file specified in the
  841.                eeeexxxxeeeecccc builtin command.  An interactive shell does not
  842.                exit if eeeexxxxeeeecccc fails.
  843.  
  844.           ccccddddaaaabbbblllleeee____vvvvaaaarrrrssss
  845.                If this is set, an argument to the ccccdddd builtin command
  846.                that is not a directory is assumed to be the name of a
  847.                variable whose value is the directory to change to.
  848.  
  849.      EEEEXXXXPPPPAAAANNNNSSSSIIIIOOOONNNN
  850.           Expansion is performed on the command line after it has been
  851.           split into words.  There are seven kinds of expansion
  852.  
  853.  
  854.  
  855.      Page 13                                          (printed 7/6/95)
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  863.  
  864.  
  865.  
  866.           performed: _b_r_a_c_e _e_x_p_a_n_s_i_o_n, _t_i_l_d_e _e_x_p_a_n_s_i_o_n, _p_a_r_a_m_e_t_e_r _a_n_d
  867.           _v_a_r_i_a_b_l_e _e_x_p_a_n_s_i_o_n, _c_o_m_m_a_n_d _s_u_b_s_t_i_t_u_t_i_o_n, _a_r_i_t_h_m_e_t_i_c
  868.           _e_x_p_a_n_s_i_o_n, _w_o_r_d _s_p_l_i_t_t_i_n_g, and _p_a_t_h_n_a_m_e _e_x_p_a_n_s_i_o_n.
  869.  
  870.           The order of expansions is: brace expansion, tilde
  871.           expansion, parameter, variable, command, and arithmetic
  872.           substitution (done in a left-to-right fashion), word
  873.           splitting, and pathname expansion.
  874.  
  875.           On systems that can support it, there is an additional
  876.           expansion available: _p_r_o_c_e_s_s _s_u_b_s_t_i_t_u_t_i_o_n.
  877.  
  878.           Only brace expansion, word splitting, and pathname expansion
  879.           can change the number of words of the expansion; other
  880.           expansions expand a single word to a single word.  The
  881.           single exception to this is the expansion of ``$$$$@@@@'' as
  882.           explained above (see PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS).
  883.  
  884.         BBBBrrrraaaacccceeee EEEExxxxppppaaaannnnssssiiiioooonnnn
  885.           _B_r_a_c_e _e_x_p_a_n_s_i_o_n is a mechanism by which arbitrary strings
  886.           may be generated.  This mechanism is similar to _p_a_t_h_n_a_m_e
  887.           _e_x_p_a_n_s_i_o_n, but the filenames generated need not exist.
  888.           Patterns to be brace expanded take the form of an optional
  889.           _p_r_e_a_m_b_l_e, followed by a series of comma-separated strings
  890.           between a pair of braces, followed by an optional _p_o_s_t_a_m_b_l_e.
  891.           The preamble is prepended to each string contained within
  892.           the braces, and the postamble is then appended to each
  893.           resulting string, expanding left to right.
  894.  
  895.           Brace expansions may be nested.  The results of each
  896.           expanded string are not sorted; left to right order is
  897.           preserved.  For example, a{{{{d,c,b}}}}e expands into `ade ace
  898.           abe'.
  899.  
  900.           Brace expansion is performed before any other expansions,
  901.           and any characters special to other expansions are preserved
  902.           in the result.  It is strictly textual.  BBBBaaaasssshhhh does not apply
  903.           any syntactic interpretation to the context of the expansion
  904.           or the text between the braces.
  905.  
  906.           A correctly-formed brace expansion must contain unquoted
  907.           opening and closing braces, and at least one unquoted comma.
  908.           Any incorrectly formed brace expansion is left unchanged.
  909.  
  910.           This construct is typically used as shorthand when the
  911.           common prefix of the strings to be generated is longer than
  912.           in the above example:
  913.  
  914.                mkdir /usr/local/src/bash/{old,new,dist,bugs}
  915.           or
  916.                chown root /usr/{ucb/{ex,edit},lib/{ex?.?*,how_ex}}
  917.  
  918.  
  919.  
  920.  
  921.      Page 14                                          (printed 7/6/95)
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  929.  
  930.  
  931.  
  932.           Brace expansion introduces a slight incompatibility with
  933.           traditional versions of sssshhhh, the Bourne shell.  sssshhhh does not
  934.           treat opening or closing braces specially when they appear
  935.           as part of a word, and preserves them in the output.  BBBBaaaasssshhhh
  936.           removes braces from words as a consequence of brace
  937.           expansion.  For example, a word entered to sssshhhh as _f_i_l_e{_1,_2}
  938.           appears identically in the output.  The same word is output
  939.           as _f_i_l_e_1 _f_i_l_e_2 after expansion by bbbbaaaasssshhhh.  If strict
  940.           compatibility with sssshhhh is desired, start bbbbaaaasssshhhh with the
  941.           ----nnnnoooobbbbrrrraaaacccceeeeeeeexxxxppppaaaannnnssssiiiioooonnnn flag (see OOOOPPPPTTTTIIIIOOOONNNNSSSS above) or disable brace
  942.           expansion with the ++++oooo bbbbrrrraaaacccceeeeeeeexxxxppppaaaannnndddd option to the sssseeeetttt command
  943.           (see SSSSHHHHEEEELLLLLLLL BBBBUUUUIIIILLLLTTTTIIIINNNN CCCCOOOOMMMMMMMMAAAANNNNDDDDSSSS below).
  944.  
  945.         TTTTiiiillllddddeeee EEEExxxxppppaaaannnnssssiiiioooonnnn
  946.           If a word begins with a tilde character (`~~~~'), all of the
  947.           characters preceding the first slash (or all characters, if
  948.           there is no slash) are treated as a possible _l_o_g_i_n _n_a_m_e. If
  949.           this _l_o_g_i_n _n_a_m_e is the null string, the tilde is replaced
  950.           with the value of the parameter HHHHOOOOMMMMEEEE.  If HHHHOOOOMMMMEEEE is unset, the
  951.           home directory of the user executing the shell is
  952.           substituted instead.
  953.  
  954.           If a `+' follows the tilde, the value of PPPPWWWWDDDD replaces the
  955.           tilde and `+'.  If a `-' follows, the value of OOOOLLLLDDDDPPPPWWWWDDDD is
  956.           substituted.  If the value following the tilde is a valid
  957.           _l_o_g_i_n _n_a_m_e, the tilde and _l_o_g_i_n _n_a_m_e are replaced with the
  958.           home directory associated with that name.  If the name is
  959.           invalid, or the tilde expansion fails, the word is
  960.           unchanged.
  961.  
  962.           Each variable assignment is checked for unquoted instances
  963.           of tildes following a :::: or ====.  In these cases, tilde
  964.           substitution is also performed.  Consequently, one may use
  965.           pathnames with tildes in assignments to PPPPAAAATTTTHHHH, MMMMAAAAIIIILLLLPPPPAAAATTTTHHHH, and
  966.           CCCCDDDDPPPPAAAATTTTHHHH, and the shell assigns the expanded value.
  967.  
  968.         PPPPaaaarrrraaaammmmeeeetttteeeerrrr EEEExxxxppppaaaannnnssssiiiioooonnnn
  969.           The `$$$$' character introduces parameter expansion, command
  970.           substitution, or arithmetic expansion.  The parameter name
  971.           or symbol to be expanded may be enclosed in braces, which
  972.           are optional but serve to protect the variable to be
  973.           expanded from characters immediately following it which
  974.           could be interpreted as part of the name.
  975.  
  976.           ${_p_a_r_a_m_e_t_e_r}
  977.                The value of _p_a_r_a_m_e_t_e_r is substituted.  The braces are
  978.                required when _p_a_r_a_m_e_t_e_r is a positional parameter with
  979.                more than one digit, or when _p_a_r_a_m_e_t_e_r is followed by a
  980.                character which is not to be interpreted as part of its
  981.                name.
  982.  
  983.           In each of the cases below, _w_o_r_d is subject to tilde
  984.  
  985.  
  986.  
  987.      Page 15                                          (printed 7/6/95)
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  995.  
  996.  
  997.  
  998.           expansion, parameter expansion, command substitution, and
  999.           arithmetic expansion.  BBBBaaaasssshhhh tests for a parameter that is
  1000.           unset or null; omitting the colon results in a test only for
  1001.           a parameter that is unset.
  1002.  
  1003.           ${_p_a_r_a_m_e_t_e_r::::----_w_o_r_d}
  1004.                UUUUsssseeee DDDDeeeeffffaaaauuuulllltttt VVVVaaaalllluuuueeeessss.  If _p_a_r_a_m_e_t_e_r is unset or null, the
  1005.                expansion of _w_o_r_d is substituted.  Otherwise, the value
  1006.                of _p_a_r_a_m_e_t_e_r is substituted.
  1007.           ${_p_a_r_a_m_e_t_e_r::::====_w_o_r_d}
  1008.                AAAAssssssssiiiiggggnnnn DDDDeeeeffffaaaauuuulllltttt VVVVaaaalllluuuueeeessss.  If _p_a_r_a_m_e_t_e_r is unset or null,
  1009.                the expansion of _w_o_r_d is assigned to _p_a_r_a_m_e_t_e_r.  The
  1010.                value of _p_a_r_a_m_e_t_e_r is then substituted.  Positional
  1011.                parameters and special parameters may not be assigned
  1012.                to in this way.
  1013.           ${_p_a_r_a_m_e_t_e_r::::????_w_o_r_d}
  1014.                DDDDiiiissssppppllllaaaayyyy EEEErrrrrrrroooorrrr iiiiffff NNNNuuuullllllll oooorrrr UUUUnnnnsssseeeetttt.  If _p_a_r_a_m_e_t_e_r is null
  1015.                or unset, the expansion of _w_o_r_d (or a message to that
  1016.                effect if _w_o_r_d is not present) is written to the
  1017.                standard error and the shell, if it is not interactive,
  1018.                exits.  Otherwise, the value of _p_a_r_a_m_e_t_e_r is
  1019.                substituted.
  1020.           ${_p_a_r_a_m_e_t_e_r::::++++_w_o_r_d}
  1021.                UUUUsssseeee AAAAlllltttteeeerrrrnnnnaaaatttteeee VVVVaaaalllluuuueeee.  If _p_a_r_a_m_e_t_e_r is null or unset,
  1022.                nothing is substituted, otherwise the expansion of _w_o_r_d
  1023.                is substituted.
  1024.           ${####_p_a_r_a_m_e_t_e_r}
  1025.                The length in characters of the value of _p_a_r_a_m_e_t_e_r is
  1026.                substituted.  If _p_a_r_a_m_e_t_e_r is **** or @@@@, the length
  1027.                substituted is the length of **** expanded within double
  1028.                quotes.
  1029.           ${_p_a_r_a_m_e_t_e_r####_w_o_r_d}
  1030.           ${_p_a_r_a_m_e_t_e_r########_w_o_r_d}
  1031.                The _w_o_r_d is expanded to produce a pattern just as in
  1032.                pathname expansion.  If the pattern matches the
  1033.                beginning of the value of _p_a_r_a_m_e_t_e_r, then the expansion
  1034.                is the value of _p_a_r_a_m_e_t_e_r with the shortest matching
  1035.                pattern deleted (the ``####'' case) or the longest
  1036.                matching pattern deleted (the ``########'' case).
  1037.  
  1038.           ${_p_a_r_a_m_e_t_e_r%%%%_w_o_r_d}
  1039.           ${_p_a_r_a_m_e_t_e_r%%%%%%%%_w_o_r_d}
  1040.                The _w_o_r_d is expanded to produce a pattern just as in
  1041.                pathname expansion.  If the pattern matches a trailing
  1042.                portion of the value of _p_a_r_a_m_e_t_e_r, then the expansion
  1043.                is the value of _p_a_r_a_m_e_t_e_r with the shortest matching
  1044.                pattern deleted (the ``%%%%'' case) or the longest
  1045.                matching pattern deleted (the ``%%%%%%%%'' case).
  1046.  
  1047.         CCCCoooommmmmmmmaaaannnndddd SSSSuuuubbbbssssttttiiiittttuuuuttttiiiioooonnnn
  1048.           _C_o_m_m_a_n_d _s_u_b_s_t_i_t_u_t_i_o_n allows the output of a command to
  1049.           replace the command name.  There are two forms:
  1050.  
  1051.  
  1052.  
  1053.      Page 16                                          (printed 7/6/95)
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  1061.  
  1062.  
  1063.  
  1064.                $$$$((((_c_o_m_m_a_n_d))))
  1065.           or
  1066.                ````_c_o_m_m_a_n_d````
  1067.  
  1068.           BBBBaaaasssshhhh performs the expansion by executing _c_o_m_m_a_n_d and
  1069.           replacing the command substitution with the standard output
  1070.           of the command, with any trailing newlines deleted.
  1071.  
  1072.           When the old-style backquote form of substitution is used,
  1073.           backslash retains its literal meaning except when followed
  1074.           by $$$$, ````, or \\\\.  When using the $(_c_o_m_m_a_n_d) form, all
  1075.           characters between the parentheses make up the command; none
  1076.           are treated specially.
  1077.  
  1078.           Command substitutions may be nested.  To nest when using the
  1079.           old form, escape the inner backquotes with backslashes.
  1080.  
  1081.           If the substitution appears within double quotes, word
  1082.           splitting and pathname expansion are not performed on the
  1083.           results.
  1084.  
  1085.         AAAArrrriiiitttthhhhmmmmeeeettttiiiicccc EEEExxxxppppaaaannnnssssiiiioooonnnn
  1086.           Arithmetic expansion allows the evaluation of an arithmetic
  1087.           expression and the substitution of the result.  There are
  1088.           two formats for arithmetic expansion:
  1089.  
  1090.                $$$$[[[[_e_x_p_r_e_s_s_i_o_n]]]]
  1091.  
  1092.                $$$$((((((((_e_x_p_r_e_s_s_i_o_n))))))))
  1093.  
  1094.           The _e_x_p_r_e_s_s_i_o_n is treated as if it were within double
  1095.           quotes, but a double quote inside the braces or parentheses
  1096.           is not treated specially.  All tokens in the expression
  1097.           undergo parameter expansion, command substitution, and quote
  1098.           removal.  Arithmetic substitutions may be nested.
  1099.  
  1100.           The evaluation is performed according to the rules listed
  1101.           below under AAAARRRRIIIITTTTHHHHMMMMEEEETTTTIIIICCCC EEEEVVVVAAAALLLLUUUUAAAATTTTIIIIOOOONNNN.  If _e_x_p_r_e_s_s_i_o_n is
  1102.           invalid, bbbbaaaasssshhhh prints a message indicating failure and no
  1103.           substitution occurs.
  1104.  
  1105.         PPPPrrrroooocccceeeessssssss SSSSuuuubbbbssssttttiiiittttuuuuttttiiiioooonnnn
  1106.           _P_r_o_c_e_s_s _s_u_b_s_t_i_t_u_t_i_o_n is supported on systems that support
  1107.           named pipes (_F_I_F_O_s) or the ////ddddeeeevvvv////ffffdddd method of naming open
  1108.           files.  It takes the form of <<<<((((_l_i_s_t)))) or >>>>((((_l_i_s_t)))).  The
  1109.           process _l_i_s_t is run with its input or output connected to a
  1110.           _F_I_F_O or some file in ////ddddeeeevvvv////ffffdddd.  The name of this file is
  1111.           passed as an argument to the current command as the result
  1112.           of the expansion.  If the >>>>((((_l_i_s_t)))) form is used, writing to
  1113.           the file will provide input for _l_i_s_t.  If the <<<<((((_l_i_s_t)))) form
  1114.           is used, the file passed as an argument should be read to
  1115.           obtain the output of _l_i_s_t.
  1116.  
  1117.  
  1118.  
  1119.      Page 17                                          (printed 7/6/95)
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  1127.  
  1128.  
  1129.  
  1130.           On systems that support it, _p_r_o_c_e_s_s _s_u_b_s_t_i_t_u_t_i_o_n is
  1131.           performed simultaneously with _p_a_r_a_m_e_t_e_r _a_n_d _v_a_r_i_a_b_l_e
  1132.           _e_x_p_a_n_s_i_o_n, _c_o_m_m_a_n_d _s_u_b_s_t_i_t_u_t_i_o_n, and _a_r_i_t_h_m_e_t_i_c _e_x_p_a_n_s_i_o_n.
  1133.  
  1134.         WWWWoooorrrrdddd SSSSpppplllliiiittttttttiiiinnnngggg
  1135.           The shell scans the results of parameter expansion, command
  1136.           substitution, and arithmetic expansion that did not occur
  1137.           within double quotes for _w_o_r_d _s_p_l_i_t_t_i_n_g.
  1138.  
  1139.           The shell treats each character of IIIIFFFFSSSS as a delimiter, and
  1140.           splits the results of the other expansions into words on
  1141.           these characters.  If the value of IIIIFFFFSSSS is exactly
  1142.           <<<<ssssppppaaaacccceeee>>>><<<<ttttaaaabbbb>>>><<<<nnnneeeewwwwlllliiiinnnneeee>>>>, the default, then any sequence of IIIIFFFFSSSS
  1143.           characters serves to delimit words.  If IIIIFFFFSSSS has a value
  1144.           other than the default, then sequences of the whitespace
  1145.           characters ssssppppaaaacccceeee and ttttaaaabbbb are ignored at the beginning and
  1146.           end of the word, as long as the whitespace character is in
  1147.           the value of IIIIFFFFSSSS (an IIIIFFFFSSSS whitespace character).  Any
  1148.           character in IIIIFFFFSSSS that is not IIIIFFFFSSSS whitespace, along with any
  1149.           adjacent IIIIFFFFSSSS whitespace characters, delimits a field.  A
  1150.           sequence of IIIIFFFFSSSS whitespace characters is also treated as a
  1151.           delimiter.  If the value of IIIIFFFFSSSS is null, no word splitting
  1152.           occurs.  IIIIFFFFSSSS cannot be unset.
  1153.  
  1154.           Explicit null arguments ("""""""" or '''''''') are retained.  Implicit
  1155.           null arguments, resulting from the expansion of _p_a_r_a_m_e_t_e_r_s
  1156.           that have no values, are removed.
  1157.  
  1158.           Note that if no expansion occurs, no splitting is performed.
  1159.  
  1160.         PPPPaaaatttthhhhnnnnaaaammmmeeee EEEExxxxppppaaaannnnssssiiiioooonnnn
  1161.           After word splitting, unless the ----ffff option has been set,
  1162.           bbbbaaaasssshhhh scans each _w_o_r_d for the characters ****, ????, and [[[[.  If one
  1163.           of these characters appears, then the word is regarded as a
  1164.           _p_a_t_t_e_r_n, and replaced with an alphabetically sorted list of
  1165.           pathnames matching the pattern.  If no matching pathnames
  1166.           are found, and the shell variable aaaalllllllloooowwww____nnnnuuuullllllll____gggglllloooobbbb____eeeexxxxppppaaaannnnssssiiiioooonnnn
  1167.           is unset, the word is left unchanged.  If the variable is
  1168.           set, and no matches are found, the word is removed.  When a
  1169.           pattern is used for pathname generation, the character ````````....''''''''
  1170.           at the start of a name or immediately following a slash must
  1171.           be matched explicitly, unless the shell variable
  1172.           gggglllloooobbbb____ddddooootttt____ffffiiiilllleeeennnnaaaammmmeeeessss is set.  The slash character must always
  1173.           be matched explicitly.  In other cases, the ````````....'''''''' character
  1174.           is not treated specially.
  1175.  
  1176.           The special pattern characters have the following meanings:
  1177.  
  1178.           ****    Matches any string, including the null string.
  1179.           ????    Matches any single character.
  1180.           [[[[............]]]]
  1181.                Matches any one of the enclosed characters.  A pair of
  1182.  
  1183.  
  1184.  
  1185.      Page 18                                          (printed 7/6/95)
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  1193.  
  1194.  
  1195.  
  1196.                characters separated by a minus sign denotes a _r_a_n_g_e;
  1197.                any character lexically between those two characters,
  1198.                inclusive, is matched.  If the first character
  1199.                following the [[[[ is a !!!! or a ^^^^ then any character not
  1200.                enclosed is matched.  A ---- or ]]]] may be matched by
  1201.                including it as the first or last character in the set.
  1202.  
  1203.         QQQQuuuuooootttteeee RRRReeeemmmmoooovvvvaaaallll
  1204.           After the preceding expansions, all unquoted occurrences of
  1205.           the characters \\\\, ````, and """" are removed.
  1206.  
  1207.      RRRREEEEDDDDIIIIRRRREEEECCCCTTTTIIIIOOOONNNN
  1208.           Before a command is executed, its input and output may be
  1209.           _r_e_d_i_r_e_c_t_e_d using a special notation interpreted by the
  1210.           shell.  Redirection may also be used to open and close files
  1211.           for the current shell execution environment.  The following
  1212.           redirection operators may precede or appear anywhere within
  1213.           a _s_i_m_p_l_e _c_o_m_m_a_n_d or may follow a _c_o_m_m_a_n_d.  Redirections are
  1214.           processed in the order they appear, from left to right.
  1215.  
  1216.           In the following descriptions, if the file descriptor number
  1217.           is omitted, and the first character of the redirection
  1218.           operator is <<<<, the redirection refers to the standard input
  1219.           (file descriptor 0).  If the first character of the
  1220.           redirection operator is >>>>, the redirection refers to the
  1221.           standard output (file descriptor 1).
  1222.  
  1223.           The word that follows the redirection operator in the
  1224.           following descriptions is subjected to brace expansion,
  1225.           tilde expansion, parameter expansion, command substitution,
  1226.           arithmetic expansion, quote removal, and pathname expansion.
  1227.           If it expands to more than one word, bbbbaaaasssshhhh reports an error.
  1228.  
  1229.           Note that the order of redirections is significant.  For
  1230.           example, the command
  1231.  
  1232.                ls >>>> dirlist 2>>>>&&&&1
  1233.  
  1234.           directs both standard output and standard error to the file
  1235.           _d_i_r_l_i_s_t, while the command
  1236.  
  1237.                ls 2>>>>&&&&1 >>>> dirlist
  1238.  
  1239.           directs only the standard output to file _d_i_r_l_i_s_t, because
  1240.           the standard error was duplicated as standard output before
  1241.           the standard output was redirected to _d_i_r_l_i_s_t.
  1242.  
  1243.         RRRReeeeddddiiiirrrreeeeccccttttiiiinnnngggg IIIInnnnppppuuuutttt
  1244.           Redirection of input causes the file whose name results from
  1245.           the expansion of _w_o_r_d to be opened for reading on file
  1246.           descriptor _n, or the standard input (file descriptor 0) if _n
  1247.           is not specified.
  1248.  
  1249.  
  1250.  
  1251.      Page 19                                          (printed 7/6/95)
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  1259.  
  1260.  
  1261.  
  1262.           The general format for redirecting input is:
  1263.  
  1264.                [_n]<<<<_w_o_r_d
  1265.  
  1266.         RRRReeeeddddiiiirrrreeeeccccttttiiiinnnngggg OOOOuuuuttttppppuuuutttt
  1267.           Redirection of output causes the file whose name results
  1268.           from the expansion of _w_o_r_d to be opened for writing on file
  1269.           descriptor _n, or the standard output (file descriptor 1) if
  1270.           _n is not specified.  If the file does not exist it is
  1271.           created; if it does exist it is truncated to zero size.
  1272.  
  1273.           The general format for redirecting output is:
  1274.  
  1275.                [_n]>>>>_w_o_r_d
  1276.  
  1277.           If the redirection operator is >>>>||||, then the value of the ----CCCC
  1278.           option to the sssseeeetttt builtin command is not tested, and file
  1279.           creation is attempted.  (See also the description of
  1280.           nnnnoooocccclllloooobbbbbbbbeeeerrrr under SSSShhhheeeellllllll VVVVaaaarrrriiiiaaaabbbblllleeeessss above.)
  1281.  
  1282.         AAAAppppppppeeeennnnddddiiiinnnngggg RRRReeeeddddiiiirrrreeeecccctttteeeedddd OOOOuuuuttttppppuuuutttt
  1283.           Redirection of output in this fashion causes the file whose
  1284.           name results from the expansion of _w_o_r_d to be opened for
  1285.           appending on file descriptor _n, or the standard output (file
  1286.           descriptor 1) if _n is not specified.  If the file does not
  1287.           exist it is created.
  1288.  
  1289.           The general format for appending output is:
  1290.  
  1291.                [_n]>>>>>>>>_w_o_r_d
  1292.  
  1293.         RRRReeeeddddiiiirrrreeeeccccttttiiiinnnngggg SSSSttttaaaannnnddddaaaarrrrdddd OOOOuuuuttttppppuuuutttt aaaannnndddd SSSSttttaaaannnnddddaaaarrrrdddd EEEErrrrrrrroooorrrr
  1294.           BBBBaaaasssshhhh allows both the standard output (file descriptor 1) and
  1295.           the standard error output (file descriptor 2) to be
  1296.           redirected to the file whose name is the expansion of _w_o_r_d
  1297.           with this construct.
  1298.  
  1299.           There are two formats for redirecting standard output and
  1300.           standard error:
  1301.  
  1302.                &&&&>>>>_w_o_r_d
  1303.           and
  1304.                >>>>&&&&_w_o_r_d
  1305.  
  1306.           Of the two forms, the first is preferred.  This is
  1307.           semantically equivalent to
  1308.  
  1309.                >>>>_w_o_r_d 2>>>>&&&&1
  1310.  
  1311.         HHHHeeeerrrreeee DDDDooooccccuuuummmmeeeennnnttttssss
  1312.           This type of redirection instructs the shell to read input
  1313.           from the current source until a line containing only _w_o_r_d
  1314.  
  1315.  
  1316.  
  1317.      Page 20                                          (printed 7/6/95)
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  1325.  
  1326.  
  1327.  
  1328.           (with no trailing blanks) is seen.  All of the lines read up
  1329.           to that point are then used as the standard input for a
  1330.           command.
  1331.  
  1332.           The format of here-documents is as follows:
  1333.  
  1334.                <<<<<<<<[----]_w_o_r_d
  1335.                        _h_e_r_e-_d_o_c_u_m_e_n_t
  1336.                _d_e_l_i_m_i_t_e_r
  1337.  
  1338.           No parameter expansion, command substitution, pathname
  1339.           expansion, or arithmetic expansion is performed on _w_o_r_d.  If
  1340.           any characters in _w_o_r_d are quoted, the _d_e_l_i_m_i_t_e_r is the
  1341.           result of quote removal on _w_o_r_d, and the lines in the here-
  1342.           document are not expanded.  Otherwise, all lines of the
  1343.           here-document are subjected to parameter expansion, command
  1344.           substitution, and arithmetic expansion.  In the latter case,
  1345.           the pair \\\\<<<<nnnneeeewwwwlllliiiinnnneeee>>>> is ignored, and \\\\ must be used to quote
  1346.           the characters \\\\, $$$$, and ````.
  1347.  
  1348.           If the redirection operator is <<<<<<<<----, then all leading tab
  1349.           characters are stripped from input lines and the line
  1350.           containing _d_e_l_i_m_i_t_e_r.  This allows here-documents within
  1351.           shell scripts to be indented in a natural fashion.
  1352.  
  1353.         DDDDuuuupppplllliiiiccccaaaattttiiiinnnngggg FFFFiiiilllleeee DDDDeeeessssccccrrrriiiippppttttoooorrrrssss
  1354.           The redirection operator
  1355.  
  1356.                [_n]<<<<&&&&_w_o_r_d
  1357.  
  1358.           is used to duplicate input file descriptors.  If _w_o_r_d
  1359.           expands to one or more digits, the file descriptor denoted
  1360.           by _n is made to be a copy of that file descriptor.  If _w_o_r_d
  1361.           evaluates to ----, file descriptor _n is closed.  If _n is not
  1362.           specified, the standard input (file descriptor 0) is used.
  1363.  
  1364.           The operator
  1365.  
  1366.                [_n]>>>>&&&&_w_o_r_d
  1367.  
  1368.           is used similarly to duplicate output file descriptors.  If
  1369.           _n is not specified, the standard output (file descriptor 1)
  1370.           is used.  As a special case, if _n is omitted, and _w_o_r_d does
  1371.           not expand to one or more digits, the standard output and
  1372.           standard error are redirected as described previously.
  1373.  
  1374.         OOOOppppeeeennnniiiinnnngggg FFFFiiiilllleeee DDDDeeeessssccccrrrriiiippppttttoooorrrrssss ffffoooorrrr RRRReeeeaaaaddddiiiinnnngggg aaaannnndddd WWWWrrrriiiittttiiiinnnngggg
  1375.           The redirection operator
  1376.  
  1377.                [_n]<<<<>>>>_w_o_r_d
  1378.  
  1379.           causes the file whose name is the expansion of _w_o_r_d to be
  1380.  
  1381.  
  1382.  
  1383.      Page 21                                          (printed 7/6/95)
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  1391.  
  1392.  
  1393.  
  1394.           opened for both reading and writing on file descriptor _n, or
  1395.           as the standard input and standard output if _n is not
  1396.           specified.  If the file does not exist, it is created.
  1397.  
  1398.      FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNNSSSS
  1399.           A shell function, defined as described above under SSSSHHHHEEEELLLLLLLL
  1400.           GGGGRRRRAAAAMMMMMMMMAAAARRRR, stores a series of commands for later execution.
  1401.           Functions are executed in the context of the current shell;
  1402.           no new process is created to interpret them (contrast this
  1403.           with the execution of a shell script).  When a function is
  1404.           executed, the arguments to the function become the
  1405.           positional parameters during its execution.  The special
  1406.           parameter #### is updated to reflect the change.  Positional
  1407.           parameter 0 is unchanged.
  1408.  
  1409.           Variables local to the function may be declared with the
  1410.           llllooooccccaaaallll builtin command.  Ordinarily, variables and their
  1411.           values are shared between the function and its caller.
  1412.  
  1413.           If the builtin command rrrreeeettttuuuurrrrnnnn is executed in a function, the
  1414.           function completes and execution resumes with the next
  1415.           command after the function call.  When a function completes,
  1416.           the values of the positional parameters and the special
  1417.           parameter #### are restored to the values they had prior to
  1418.           function execution.
  1419.  
  1420.           Function names may be listed with the ----ffff option to the
  1421.           ddddeeeeccccllllaaaarrrreeee or ttttyyyyppppeeeesssseeeetttt builtin commands.  Functions may be
  1422.           exported so that subshells automatically have them defined
  1423.           with the ----ffff option to the eeeexxxxppppoooorrrrtttt builtin.
  1424.  
  1425.           Functions may be recursive.  No limit is imposed on the
  1426.           number of recursive calls.
  1427.  
  1428.      AAAALLLLIIIIAAAASSSSEEEESSSS
  1429.           The shell maintains a list of _a_l_i_a_s_e_s that may be set and
  1430.           unset with the aaaalllliiiiaaaassss and uuuunnnnaaaalllliiiiaaaassss builtin commands (see SSSSHHHHEEEELLLLLLLL
  1431.           BBBBUUUUIIIILLLLTTTTIIIINNNN CCCCOOOOMMMMMMMMAAAANNNNDDDDSSSS below).  The first word of each command, if
  1432.           unquoted, is checked to see if it has an alias.  If so, that
  1433.           word is replaced by the text of the alias.  The alias name
  1434.           and the replacement text may contain any valid shell input,
  1435.           including the _m_e_t_a_c_h_a_r_a_c_t_e_r_s listed above, with the
  1436.           exception that the alias name may not contain =.  The first
  1437.           word of the replacement text is tested for aliases, but a
  1438.           word that is identical to an alias being expanded is not
  1439.           expanded a second time.  This means that one may alias llllssss to
  1440.           llllssss ----FFFF, for instance, and bbbbaaaasssshhhh does not try to recursively
  1441.           expand the replacement text.  If the last character of the
  1442.           alias value is a _b_l_a_n_k, then the next command word following
  1443.           the alias is also checked for alias expansion.
  1444.  
  1445.           Aliases are created and listed with the aaaalllliiiiaaaassss command, and
  1446.  
  1447.  
  1448.  
  1449.      Page 22                                          (printed 7/6/95)
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  1457.  
  1458.  
  1459.  
  1460.           removed with the uuuunnnnaaaalllliiiiaaaassss command.
  1461.  
  1462.           There is no mechanism for using arguments in the replacement
  1463.           text, as in ccccsssshhhh.  If arguments are needed, a shell function
  1464.           should be used.
  1465.  
  1466.           Aliases are not expanded when the shell is not interactive.
  1467.  
  1468.           The rules concerning the definition and use of aliases are
  1469.           somewhat confusing.  BBBBaaaasssshhhh always reads at least one complete
  1470.           line of input before executing any of the commands on that
  1471.           line.  Aliases are expanded when a command is read, not when
  1472.           it is executed.  Therefore, an alias definition appearing on
  1473.           the same line as another command does not take effect until
  1474.           the next line of input is read.  This means that the
  1475.           commands following the alias definition on that line are not
  1476.           affected by the new alias.  This behavior is also an issue
  1477.           when functions are executed.  Aliases are expanded when the
  1478.           function definition is read, not when the function is
  1479.           executed, because a function definition is itself a compound
  1480.           command.  As a consequence, aliases defined in a function
  1481.           are not available until after that function is executed.  To
  1482.           be safe, always put alias definitions on a separate line,
  1483.           and do not use aaaalllliiiiaaaassss in compound commands.
  1484.  
  1485.           Note that for almost every purpose, aliases are superseded
  1486.           by shell functions.
  1487.  
  1488.      JJJJOOOOBBBB CCCCOOOONNNNTTTTRRRROOOOLLLL
  1489.           _J_o_b _c_o_n_t_r_o_l refers to the ability to selectively stop
  1490.           (_s_u_s_p_e_n_d) the execution of processes and continue (_r_e_s_u_m_e)
  1491.           their execution at a later point.  A user typically employs
  1492.           this facility via an interactive interface supplied jointly
  1493.           by the system's terminal driver and bbbbaaaasssshhhh.
  1494.  
  1495.           The shell associates a _j_o_b with each pipeline.  It keeps a
  1496.           table of currently executing jobs, which may be listed with
  1497.           the jjjjoooobbbbssss command.  When bbbbaaaasssshhhh starts a job asynchronously (in
  1498.           the _b_a_c_k_g_r_o_u_n_d), it prints a line that looks like:
  1499.  
  1500.                [1] 25647
  1501.  
  1502.           indicating that this job is job number 1 and that the
  1503.           process ID of the last process in the pipeline associated
  1504.           with this job is 25647.  All of the processes in a single
  1505.           pipeline are members of the same job.  BBBBaaaasssshhhh uses the _j_o_b
  1506.           abstraction as the basis for job control.
  1507.  
  1508.           To facilitate the implementation of the user interface to
  1509.           job control, the system maintains the notion of a _c_u_r_r_e_n_t
  1510.           _t_e_r_m_i_n_a_l _p_r_o_c_e_s_s _g_r_o_u_p _I_D.  Members of this process group
  1511.           (processes whose process group ID is equal to the current
  1512.  
  1513.  
  1514.  
  1515.      Page 23                                          (printed 7/6/95)
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  1523.  
  1524.  
  1525.  
  1526.           terminal process group ID) receive keyboard-generated
  1527.           signals such as SSSSIIIIGGGGIIIINNNNTTTT.  These processes are said to be in
  1528.           the _f_o_r_e_g_r_o_u_n_d.  _B_a_c_k_g_r_o_u_n_d processes are those whose
  1529.           process group ID differs from the terminal's; such processes
  1530.           are immune to keyboard-generated signals.  Only foreground
  1531.           processes are allowed to read from or write to the terminal.
  1532.           Background processes which attempt to read from (write to)
  1533.           the terminal are sent a SSSSIIIIGGGGTTTTTTTTIIIINNNN ((((SSSSIIIIGGGGTTTTTTTTOOOOUUUU)))) signal by the
  1534.           terminal driver, which, unless caught, suspends the process.
  1535.  
  1536.           If the operating system on which bbbbaaaasssshhhh is running supports
  1537.           job control, bbbbaaaasssshhhh allows you to use it.  Typing the _s_u_s_p_e_n_d
  1538.           character (typically ^^^^ZZZZ, Control-Z) while a process is
  1539.           running causes that process to be stopped and returns you to
  1540.           bbbbaaaasssshhhh.  Typing the _d_e_l_a_y_e_d _s_u_s_p_e_n_d character (typically ^^^^YYYY,
  1541.           Control-Y) causes the process to be stopped when it attempts
  1542.           to read input from the terminal, and control to be returned
  1543.           to bbbbaaaasssshhhh.  You may then manipulate the state of this job,
  1544.           using the bbbbgggg command to continue it in the background, the
  1545.           ffffgggg command to continue it in the foreground, or the kkkkiiiillllllll
  1546.           command to kill it.  A ^^^^ZZZZ takes effect immediately, and has
  1547.           the additional side effect of causing pending output and
  1548.           typeahead to be discarded.
  1549.  
  1550.           There are a number of ways to refer to a job in the shell.
  1551.           The character %%%% introduces a job name.  Job number _n may be
  1552.           referred to as %%%%nnnn.  A job may also be referred to using a
  1553.           prefix of the name used to start it, or using a substring
  1554.           that appears in its command line.  For example, %%%%cccceeee refers
  1555.           to a stopped cccceeee job.  If a prefix matches more than one job,
  1556.           bbbbaaaasssshhhh reports an error.  Using %%%%????cccceeee, on the other hand,
  1557.           refers to any job containing the string cccceeee in its command
  1558.           line.  If the substring matches more than one job, bbbbaaaasssshhhh
  1559.           reports an error.  The symbols %%%%%%%% and %%%%++++ refer to the
  1560.           shell's notion of the _c_u_r_r_e_n_t _j_o_b, which is the last job
  1561.           stopped while it was in the foreground.  The _p_r_e_v_i_o_u_s _j_o_b
  1562.           may be referenced using %%%%----.  In output pertaining to jobs
  1563.           (e.g., the output of the jjjjoooobbbbssss command), the current job is
  1564.           always flagged with a ++++, and the previous job with a ----.
  1565.  
  1566.           Simply naming a job can be used to bring it into the
  1567.           foreground: %%%%1111 is a synonym for ````````ffffgggg %%%%1111'''''''', bringing job 1
  1568.           from the background into the foreground.  Similarly, ````````%%%%1111
  1569.           &&&&'''''''' resumes job 1 in the background, equivalent to ````````bbbbgggg
  1570.           %%%%1111''''''''.
  1571.  
  1572.           The shell learns immediately whenever a job changes state.
  1573.           Normally, bbbbaaaasssshhhh waits until it is about to print a prompt
  1574.           before reporting changes in a job's status so as to not
  1575.           interrupt any other output.  If the ----bbbb option to the sssseeeetttt
  1576.           builtin command is set, bbbbaaaasssshhhh reports such changes
  1577.           immediately.  (See also the description of nnnnoooottttiiiiffffyyyy variable
  1578.  
  1579.  
  1580.  
  1581.      Page 24                                          (printed 7/6/95)
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  1589.  
  1590.  
  1591.  
  1592.           under SSSShhhheeeellllllll VVVVaaaarrrriiiiaaaabbbblllleeeessss above.)
  1593.  
  1594.           If you attempt to exit bbbbaaaasssshhhh while jobs are stopped, the
  1595.           shell prints a message warning you.  You may then use the
  1596.           jjjjoooobbbbssss command to inspect their status.  If you do this, or
  1597.           try to exit again immediately, you are not warned again, and
  1598.           the stopped jobs are terminated.
  1599.  
  1600.      SSSSIIIIGGGGNNNNAAAALLLLSSSS
  1601.           When bbbbaaaasssshhhh is interactive, it ignores SSSSIIIIGGGGTTTTEEEERRRRMMMM (so that kkkkiiiillllllll 0000
  1602.           does not kill an interactive shell), and SSSSIIIIGGGGIIIINNNNTTTT is caught
  1603.           and handled (so that the wwwwaaaaiiiitttt builtin is interruptible).  In
  1604.           all cases, bbbbaaaasssshhhh ignores SSSSIIIIGGGGQQQQUUUUIIIITTTT.  If job control is in
  1605.           effect, bbbbaaaasssshhhh ignores SSSSIIIIGGGGTTTTTTTTIIIINNNN, SSSSIIIIGGGGTTTTTTTTOOOOUUUU, and SSSSIIIIGGGGTTTTSSSSTTTTPPPP.
  1606.  
  1607.           Synchronous jobs started by bbbbaaaasssshhhh have signals set to the
  1608.           values inherited by the shell from its parent.  When job
  1609.           control is not in effect, background jobs (jobs started with
  1610.           &&&&) ignore SSSSIIIIGGGGIIIINNNNTTTT and SSSSIIIIGGGGQQQQUUUUIIIITTTT.  Commands run as a result of
  1611.           command substitution ignore the keyboard-generated job
  1612.           control signals SSSSIIIIGGGGTTTTTTTTIIIINNNN, SSSSIIIIGGGGTTTTTTTTOOOOUUUU, and SSSSIIIIGGGGTTTTSSSSTTTTPPPP.
  1613.  
  1614.      CCCCOOOOMMMMMMMMAAAANNNNDDDD EEEEXXXXEEEECCCCUUUUTTTTIIIIOOOONNNN
  1615.           After a command has been split into words, if it results in
  1616.           a simple command and an optional list of arguments, the
  1617.           following actions are taken.
  1618.  
  1619.           If the command name contains no slashes, the shell attempts
  1620.           to locate it.  If there exists a shell function by that
  1621.           name, that function is invoked as described above in
  1622.           FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNNSSSS.  If the name does not match a function, the shell
  1623.           searches for it in the list of shell builtins.  If a match
  1624.           is found, that builtin is invoked.
  1625.  
  1626.           If the name is neither a shell function nor a builtin, and
  1627.           contains no slashes, bbbbaaaasssshhhh searches each element of the PPPPAAAATTTTHHHH
  1628.           for a directory containing an executable file by that name.
  1629.           If the search is unsuccessful, the shell prints an error
  1630.           message and returns a nonzero exit status.
  1631.  
  1632.           If the search is successful, or if the command name contains
  1633.           one or more slashes, the shell executes the named program.
  1634.           Argument 0 is set to the name given, and the remaining
  1635.           arguments to the command are set to the arguments given, if
  1636.           any.
  1637.  
  1638.           If this execution fails because the file is not in
  1639.           executable format, and the file is not a directory, it is
  1640.           assumed to be a _s_h_e_l_l _s_c_r_i_p_t, a file containing shell
  1641.           commands.  A subshell is spawned to execute it.  This
  1642.           subshell reinitializes itself, so that the effect is as if a
  1643.           new shell had been invoked to handle the script, with the
  1644.  
  1645.  
  1646.  
  1647.      Page 25                                          (printed 7/6/95)
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  1655.  
  1656.  
  1657.  
  1658.           exception that the locations of commands remembered by the
  1659.           parent (see hhhhaaaasssshhhh below under SSSSHHHHEEEELLLLLLLL BBBBUUUUIIIILLLLTTTTIIIINNNN CCCCOOOOMMMMMMMMAAAANNNNDDDDSSSS) are
  1660.           retained by the child.
  1661.  
  1662.           If the program is a file beginning with ####!!!!, the remainder of
  1663.           the first line specifies an interpreter for the program.
  1664.           The shell executes the specified interpreter on operating
  1665.           systems that do not handle this executable format
  1666.           themselves.  The arguments to the interpreter consist of a
  1667.           single optional argument following the interpreter name on
  1668.           the first line of the program, followed by the name of the
  1669.           program, followed by the command arguments, if any.
  1670.  
  1671.      EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT
  1672.           When a program is invoked it is given an array of strings
  1673.           called the _e_n_v_i_r_o_n_m_e_n_t.  This is a list of _n_a_m_e-_v_a_l_u_e pairs,
  1674.           of the form _n_a_m_e=_v_a_l_u_e.
  1675.  
  1676.           The shell allows you to manipulate the environment in
  1677.           several ways.  On invocation, the shell scans its own
  1678.           environment and creates a parameter for each name found,
  1679.           automatically marking it for _e_x_p_o_r_t to child processes.
  1680.           Executed commands inherit the environment.  The eeeexxxxppppoooorrrrtttt and
  1681.           ddddeeeeccccllllaaaarrrreeee ----xxxx commands allow parameters and functions to be
  1682.           added to and deleted from the environment.  If the value of
  1683.           a parameter in the environment is modified, the new value
  1684.           becomes part of the environment, replacing the old.  The
  1685.           environment inherited by any executed command consists of
  1686.           the shell's initial environment, whose values may be
  1687.           modified in the shell, less any pairs removed by the uuuunnnnsssseeeetttt
  1688.           command, plus any additions via the eeeexxxxppppoooorrrrtttt and ddddeeeeccccllllaaaarrrreeee ----xxxx
  1689.           commands.
  1690.  
  1691.           The environment for any _s_i_m_p_l_e _c_o_m_m_a_n_d or function may be
  1692.           augmented temporarily by prefixing it with parameter
  1693.           assignments, as described above in PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS.  These
  1694.           assignment statements affect only the environment seen by
  1695.           that command.
  1696.  
  1697.           If the ----kkkk flag is set (see the sssseeeetttt builtin command below),
  1698.           then _a_l_l parameter assignments are placed in the environment
  1699.           for a command, not just those that precede the command name.
  1700.  
  1701.           When bbbbaaaasssshhhh invokes an external command, the variable ____ is set
  1702.           to the full path name of the command and passed to that
  1703.           command in its environment.
  1704.  
  1705.      EEEEXXXXIIIITTTT SSSSTTTTAAAATTTTUUUUSSSS
  1706.           For the purposes of the shell, a command which exits with a
  1707.           zero exit status has succeeded.  An exit status of zero
  1708.           indicates success.  A non-zero exit status indicates
  1709.           failure.  When a command terminates on a fatal signal, bbbbaaaasssshhhh
  1710.  
  1711.  
  1712.  
  1713.      Page 26                                          (printed 7/6/95)
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  1721.  
  1722.  
  1723.  
  1724.           uses the value of 128+ssssiiiiggggnnnnaaaallll as the exit status.
  1725.  
  1726.           If a command is not found, the child process created to
  1727.           execute it returns a status of 127.  If a command is found
  1728.           but is not executable, the return status is 126.
  1729.  
  1730.           BBBBaaaasssshhhh itself returns the exit status of the last command
  1731.           executed, unless a syntax error occurs, in which case it
  1732.           exits with a non-zero value.  See also the eeeexxxxiiiitttt builtin
  1733.           command below.
  1734.  
  1735.      PPPPRRRROOOOMMMMPPPPTTTTIIIINNNNGGGG
  1736.           When executing interactively, bbbbaaaasssshhhh displays the primary
  1737.           prompt PPPPSSSS1111 when it is ready to read a command, and the
  1738.           secondary prompt PPPPSSSS2222 when it needs more input to complete a
  1739.           command.  BBBBaaaasssshhhh allows these prompt strings to be customized
  1740.           by inserting a number of backslash-escaped special
  1741.           characters that are decoded as follows:
  1742.                \\\\tttt   the current time in HH:MM:SS format
  1743.                \\\\dddd   the date in "Weekday Month Date" format (e.g.,
  1744.                     "Tue May 26")
  1745.                \\\\nnnn   newline
  1746.                \\\\ssss   the name of the shell, the basename of $$$$0000 (the
  1747.                     portion following the final slash)
  1748.                \\\\wwww   the current working directory
  1749.                \\\\WWWW   the basename of the current working directory
  1750.                \\\\uuuu   the username of the current user
  1751.                \\\\hhhh   the hostname
  1752.                \\\\####   the command number of this command
  1753.                \\\\!!!!   the history number of this command
  1754.                \\\\$$$$   if the effective UID is 0, a ####, otherwise a $$$$
  1755.                \\\\nnnnnnnnnnnn the character corresponding to the octal number
  1756.                     nnnnnnnnnnnn
  1757.                \\\\\\\\   a backslash
  1758.                \\\\[[[[   begin a sequence of non-printing characters, which
  1759.                     could be used to embed a terminal control sequence
  1760.                     into the prompt
  1761.                \\\\]]]]   end a sequence of non-printing characters
  1762.  
  1763.           The command number and the history number are usually
  1764.           different: the history number of a command is its position
  1765.           in the history list, which may include commands restored
  1766.           from the history file (see HHHHIIIISSSSTTTTOOOORRRRYYYY below), while the command
  1767.           number is the position in the sequence of commands executed
  1768.           during the current shell session.  After the string is
  1769.           decoded, it is expanded via parameter expansion, command
  1770.           substitution, arithmetic expansion, and word splitting.
  1771.  
  1772.      RRRREEEEAAAADDDDLLLLIIIINNNNEEEE
  1773.           This is the library that handles reading input when using an
  1774.           interactive shell, unless the ----nnnnoooolllliiiinnnneeeeeeeeddddiiiittttiiiinnnngggg option is
  1775.           given.  By default, the line editing commands are similar to
  1776.  
  1777.  
  1778.  
  1779.      Page 27                                          (printed 7/6/95)
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  1787.  
  1788.  
  1789.  
  1790.           those of emacs.  A vi-style line editing interface is also
  1791.           available.
  1792.  
  1793.           In this section, the emacs-style notation is used to denote
  1794.           keystrokes.  Control keys are denoted by C-_k_e_y, e.g., C-n
  1795.           means Control-N.  Similarly, _m_e_t_a keys are denoted by M-_k_e_y,
  1796.           so M-x means Meta-X.  (On keyboards without a _m_e_t_a key, M-_x
  1797.           means ESC _x, i.e., press the Escape key then the _x key.
  1798.           This makes ESC the _m_e_t_a _p_r_e_f_i_x.  The combination M-C-_x means
  1799.           ESC-Control-_x, or press the Escape key then hold the Control
  1800.           key while pressing the _x key.)
  1801.  
  1802.           The default key-bindings may be changed with an ~/._i_n_p_u_t_r_c
  1803.           file.  The value of the shell variable IIIINNNNPPPPUUUUTTTTRRRRCCCC, if set, is
  1804.           used instead of ~/._i_n_p_u_t_r_c.  Other programs that use this
  1805.           library may add their own commands and bindings.
  1806.  
  1807.           For example, placing
  1808.  
  1809.                M-Control-u: universal-argument
  1810.           or
  1811.                C-Meta-u: universal-argument
  1812.           into the ~/._i_n_p_u_t_r_c would make M-C-u execute the readline
  1813.           command _u_n_i_v_e_r_s_a_l-_a_r_g_u_m_e_n_t.
  1814.  
  1815.           The following symbolic character names are recognized:
  1816.           _R_U_B_O_U_T, _D_E_L, _E_S_C, _L_F_D, _N_E_W_L_I_N_E, _R_E_T, _R_E_T_U_R_N, _S_P_C, _S_P_A_C_E, and
  1817.           _T_A_B.  In addition to command names, readline allows keys to
  1818.           be bound to a string that is inserted when the key is
  1819.           pressed (a _m_a_c_r_o).
  1820.  
  1821.           Readline is customized by putting commands in an
  1822.           initialization file.  The name of this file is taken from
  1823.           the value of the IIIINNNNPPPPUUUUTTTTRRRRCCCC variable.  If that variable is
  1824.           unset, the default is ~/._i_n_p_u_t_r_c.  When a program which uses
  1825.           the readline library starts up, the init file is read, and
  1826.           the key bindings and variables are set.  There are only a
  1827.           few basic constructs allowed in the readline init file.
  1828.           Blank lines are ignored.  Lines beginning with a #### are
  1829.           comments.  Lines beginning with a $$$$ indicate conditional
  1830.           constructs.  Other lines denote key bindings and variable
  1831.           settings.
  1832.  
  1833.           The syntax for controlling key bindings in the ~/._i_n_p_u_t_r_c
  1834.           file is simple.  All that is required is the name of the
  1835.           command or the text of a macro and a key sequence to which
  1836.           it should be bound. The name may be specified in one of two
  1837.           ways: as a symbolic key name, possibly with _M_e_t_a- or
  1838.           _C_o_n_t_r_o_l- prefixes, or as a key sequence.  When using the
  1839.           form kkkkeeeeyyyynnnnaaaammmmeeee:_f_u_n_c_t_i_o_n-_n_a_m_e or _m_a_c_r_o, _k_e_y_n_a_m_e is the name of
  1840.           a key spelled out in English.  For example:
  1841.  
  1842.  
  1843.  
  1844.  
  1845.      Page 28                                          (printed 7/6/95)
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851.  
  1852.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  1853.  
  1854.  
  1855.  
  1856.                Control-u: universal-argument
  1857.                Meta-Rubout: backward-kill-word
  1858.                Control-o: ">&output"
  1859.  
  1860.           In the above example, _C-_u is bound to the function
  1861.           uuuunnnniiiivvvveeeerrrrssssaaaallll----aaaarrrrgggguuuummmmeeeennnntttt, _M-_D_E_L is bound to the function
  1862.           bbbbaaaacccckkkkwwwwaaaarrrrdddd----kkkkiiiillllllll----wwwwoooorrrrdddd, and _C-_o is bound to run the macro
  1863.           expressed on the right hand side (that is, to insert the
  1864.           text >&_o_u_t_p_u_t into the line).
  1865.  
  1866.           In the second form, """"kkkkeeeeyyyysssseeeeqqqq"""":_f_u_n_c_t_i_o_n-_n_a_m_e or _m_a_c_r_o, kkkkeeeeyyyysssseeeeqqqq
  1867.           differs from kkkkeeeeyyyynnnnaaaammmmeeee above in that strings denoting an
  1868.           entire key sequence may be specified by placing the sequence
  1869.           within double quotes.  Some GNU Emacs style key escapes can
  1870.           be used, as in the following example.
  1871.  
  1872.                "\C-u": universal-argument
  1873.                "\C-x\C-r": re-read-init-file
  1874.                "\e[11~": "Function Key 1"
  1875.  
  1876.           In this example, _C-_u is again bound to the function
  1877.           uuuunnnniiiivvvveeeerrrrssssaaaallll----aaaarrrrgggguuuummmmeeeennnntttt.  _C-_x _C-_r is bound to the function
  1878.           rrrreeee----rrrreeeeaaaadddd----iiiinnnniiiitttt----ffffiiiilllleeee, and _E_S_C [ _1 _1 ~ is bound to insert the
  1879.           text FFFFuuuunnnnccccttttiiiioooonnnn KKKKeeeeyyyy 1111.  The full set of escape sequences is
  1880.  
  1881.                \\\\CCCC----  control prefix
  1882.  
  1883.                \\\\MMMM----  meta prefix
  1884.  
  1885.                \\\\eeee   an escape character
  1886.  
  1887.                \\\\\\\\   backslash
  1888.  
  1889.                \\\\""""   literal "
  1890.  
  1891.                \\\\''''   literal '
  1892.  
  1893.           When entering the text of a macro, single or double quotes
  1894.           should be used to indicate a macro definition.  Unquoted
  1895.           text is assumed to be a function name.  Backslash will quote
  1896.           any character in the macro text, including " and '.
  1897.  
  1898.           BBBBaaaasssshhhh allows the current readline key bindings to be
  1899.           displayed or modified with the bbbbiiiinnnndddd builtin command.  The
  1900.           editing mode may be switched during interactive use by using
  1901.           the ----oooo option to the sssseeeetttt builtin command (see SSSSHHHHEEEELLLLLLLL BBBBUUUUIIIILLLLTTTTIIIINNNN
  1902.           CCCCOOOOMMMMMMMMAAAANNNNDDDDSSSS below).
  1903.  
  1904.           Readline has variables that can be used to further customize
  1905.           its behavior.  A variable may be set in the _i_n_p_u_t_r_c file
  1906.           with a statement of the form
  1907.  
  1908.  
  1909.  
  1910.  
  1911.      Page 29                                          (printed 7/6/95)
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  1919.  
  1920.  
  1921.  
  1922.                sssseeeetttt _v_a_r_i_a_b_l_e-_n_a_m_e _v_a_l_u_e
  1923.  
  1924.           Except where noted, readline variables can take the values
  1925.           OOOOnnnn or OOOOffffffff.  The variables and their default values are:
  1926.  
  1927.           hhhhoooorrrriiiizzzzoooonnnnttttaaaallll----ssssccccrrrroooollllllll----mmmmooooddddeeee ((((OOOOffffffff))))
  1928.                When set to OOOOnnnn, makes readline use a single line for
  1929.                display, scrolling the input horizontally on a single
  1930.                screen line when it becomes longer than the screen
  1931.                width rather than wrapping to a new line.
  1932.           eeeeddddiiiittttiiiinnnngggg----mmmmooooddddeeee ((((eeeemmmmaaaaccccssss))))
  1933.                Controls whether readline begins with a set of key
  1934.                bindings similar to _e_m_a_c_s or _v_i.  eeeeddddiiiittttiiiinnnngggg----mmmmooooddddeeee can be
  1935.                set to either eeeemmmmaaaaccccssss or vvvviiii.
  1936.           mmmmaaaarrrrkkkk----mmmmooooddddiiiiffffiiiieeeedddd----lllliiiinnnneeeessss ((((OOOOffffffff))))
  1937.                If set to OOOOnnnn, history lines that have been modified are
  1938.                displayed with a preceding asterisk (****).
  1939.           bbbbeeeellllllll----ssssttttyyyylllleeee ((((aaaauuuuddddiiiibbbblllleeee))))
  1940.                Controls what happens when readline wants to ring the
  1941.                terminal bell.  If set to nnnnoooonnnneeee, readline never rings
  1942.                the bell.  If set to vvvviiiissssiiiibbbblllleeee, readline uses a visible
  1943.                bell if one is available.  If set to aaaauuuuddddiiiibbbblllleeee, readline
  1944.                attempts to ring the terminal's bell.
  1945.           ccccoooommmmmmmmeeeennnntttt----bbbbeeeeggggiiiinnnn ((((````````####''''''''))))
  1946.                The string that is inserted in vvvviiii mode when the
  1947.                vvvviiii----ccccoooommmmmmmmeeeennnntttt command is executed.
  1948.           mmmmeeeettttaaaa----ffffllllaaaagggg ((((OOOOffffffff))))
  1949.                If set to OOOOnnnn, readline will enable eight-bit input
  1950.                (that is, it will not strip the high bit from the
  1951.                characters it reads), regardless of what the terminal
  1952.                claims it can support.
  1953.           ccccoooonnnnvvvveeeerrrrtttt----mmmmeeeettttaaaa ((((OOOOnnnn))))
  1954.                If set to OOOOnnnn, readline will convert characters with the
  1955.                eighth bit set to an ASCII key sequence by stripping
  1956.                the eighth bit and prepending an escape character (in
  1957.                effect, using escape as the _m_e_t_a _p_r_e_f_i_x).
  1958.           oooouuuuttttppppuuuutttt----mmmmeeeettttaaaa ((((OOOOffffffff))))
  1959.                If set to OOOOnnnn, readline will display characters with the
  1960.                eighth bit set directly rather than as a meta-prefixed
  1961.                escape sequence.
  1962.           ccccoooommmmpppplllleeeettttiiiioooonnnn----qqqquuuueeeerrrryyyy----iiiitttteeeemmmmssss ((((111100000000))))
  1963.                This determines when the user is queried about viewing
  1964.                the number of possible completions generated by the
  1965.                ppppoooossssssssiiiibbbblllleeee----ccccoooommmmpppplllleeeettttiiiioooonnnnssss command.  It may be set to any
  1966.                integer value greater than or equal to zero.  If the
  1967.                number of possible completions is greater than or equal
  1968.                to the value of this variable, the user is asked
  1969.                whether or not he wishes to view them; otherwise they
  1970.                are simply listed on the terminal.
  1971.           kkkkeeeeyyyymmmmaaaapppp ((((eeeemmmmaaaaccccssss))))
  1972.                Set the current readline keymap.  The set of legal
  1973.                keymap names is _e_m_a_c_s, _e_m_a_c_s-_s_t_a_n_d_a_r_d, _e_m_a_c_s-_m_e_t_a,
  1974.  
  1975.  
  1976.  
  1977.      Page 30                                          (printed 7/6/95)
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.  
  1984.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  1985.  
  1986.  
  1987.  
  1988.                _e_m_a_c_s-_c_t_l_x, _v_i_, _v_i_-_m_o_v_e_, _v_i_-_c_o_m_m_a_n_d, and _v_i-_i_n_s_e_r_t.  _v_i
  1989.                is equivalent to _v_i-_c_o_m_m_a_n_d; _e_m_a_c_s is equivalent to
  1990.                _e_m_a_c_s-_s_t_a_n_d_a_r_d.  The default value is _e_m_a_c_s; the value
  1991.                of eeeeddddiiiittttiiiinnnngggg----mmmmooooddddeeee also affects the default keymap.
  1992.           sssshhhhoooowwww----aaaallllllll----iiiiffff----aaaammmmbbbbiiiigggguuuuoooouuuussss ((((OOOOffffffff))))
  1993.                This alters the default behavior of the completion
  1994.                functions.  If set to oooonnnn, words which have more than
  1995.                one possible completion cause the matches to be listed
  1996.                immediately instead of ringing the bell.
  1997.           eeeexxxxppppaaaannnndddd----ttttiiiillllddddeeee ((((OOOOffffffff))))
  1998.                If set to oooonnnn, tilde expansion is performed when
  1999.                readline attempts word completion.
  2000.  
  2001.           Readline implements a facility similar in spirit to the
  2002.           conditional compilation features of the C preprocessor which
  2003.           allows key bindings and variable settings to be performed as
  2004.           the result of tests.  There are three parser directives
  2005.           used.
  2006.  
  2007.           $$$$iiiiffff  The $$$$iiiiffff construct allows bindings to be made based on
  2008.                the editing mode, the terminal being used, or the
  2009.                application using readline.  The text of the test
  2010.                extends to the end of the line; no characters are
  2011.                required to isolate it.
  2012.  
  2013.                mmmmooooddddeeee The mmmmooooddddeeee==== form of the $$$$iiiiffff directive is used to
  2014.                     test whether readline is in emacs or vi mode.
  2015.                     This may be used in conjunction with the sssseeeetttt
  2016.                     kkkkeeeeyyyymmmmaaaapppp command, for instance, to set bindings in
  2017.                     the _e_m_a_c_s-_s_t_a_n_d_a_r_d and _e_m_a_c_s-_c_t_l_x keymaps only if
  2018.                     readline is starting out in emacs mode.
  2019.  
  2020.                tttteeeerrrrmmmm The tttteeeerrrrmmmm==== form may be used to include terminal-
  2021.                     specific key bindings, perhaps to bind the key
  2022.                     sequences output by the terminal's function keys.
  2023.                     The word on the right side of the ==== is tested
  2024.                     against the full name of the terminal and the
  2025.                     portion of the terminal name before the first ----.
  2026.                     This allows _s_u_n to match both _s_u_n and _s_u_n-_c_m_d, for
  2027.                     instance.
  2028.  
  2029.                aaaapppppppplllliiiiccccaaaattttiiiioooonnnn
  2030.                     The aaaapppppppplllliiiiccccaaaattttiiiioooonnnn construct is used to include
  2031.                     application-specific settings.  Each program using
  2032.                     the readline library sets the _a_p_p_l_i_c_a_t_i_o_n _n_a_m_e,
  2033.                     and an initialization file can test for a
  2034.                     particular value.  This could be used to bind key
  2035.                     sequences to functions useful for a specific
  2036.                     program.  For instance, the following command adds
  2037.                     a key sequence that quotes the current or previous
  2038.                     word in Bash:
  2039.                     $$$$iiiiffff Bash
  2040.  
  2041.  
  2042.  
  2043.      Page 31                                          (printed 7/6/95)
  2044.  
  2045.  
  2046.  
  2047.  
  2048.  
  2049.  
  2050.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  2051.  
  2052.  
  2053.  
  2054.                     # Quote the current or previous word
  2055.                     "\C-xq": "\eb\"\ef\""
  2056.                     $$$$eeeennnnddddiiiiffff
  2057.  
  2058.           $$$$eeeennnnddddiiiiffff
  2059.                This command, as you saw in the previous example,
  2060.                terminates an $$$$iiiiffff command.
  2061.  
  2062.           $$$$eeeellllsssseeee
  2063.                Commands in this branch of the $$$$iiiiffff directive are
  2064.                executed if the test fails.
  2065.  
  2066.           Readline commands may be given numeric _a_r_g_u_m_e_n_t_s, which
  2067.           normally act as a repeat count.  Sometimes, however, it is
  2068.           the sign of the argument that is significant.  Passing a
  2069.           negative argument to a command that acts in the forward
  2070.           direction (e.g., kkkkiiiillllllll----lllliiiinnnneeee) causes that command to act in a
  2071.           backward direction.  Commands whose behavior with arguments
  2072.           deviates from this are noted.
  2073.  
  2074.           When a command is described as _k_i_l_l_i_n_g text, the text
  2075.           deleted is saved for possible future retrieval (_y_a_n_k_i_n_g).
  2076.           The killed text is saved in a _k_i_l_l-_r_i_n_g.  Consecutive kills
  2077.           cause the text to be accumulated into one unit, which can be
  2078.           yanked all at once. Commands which do not kill text separate
  2079.           the chunks of text on the kill-ring.
  2080.  
  2081.           The following is a list of the names of the commands and the
  2082.           default key sequences to which they are bound.
  2083.  
  2084.         CCCCoooommmmmmmmaaaannnnddddssss ffffoooorrrr MMMMoooovvvviiiinnnngggg
  2085.           bbbbeeeeggggiiiinnnnnnnniiiinnnngggg----ooooffff----lllliiiinnnneeee ((((CCCC----aaaa))))
  2086.                Move to the start of the current line.
  2087.           eeeennnndddd----ooooffff----lllliiiinnnneeee ((((CCCC----eeee))))
  2088.                Move to the end of the line.
  2089.           ffffoooorrrrwwwwaaaarrrrdddd----cccchhhhaaaarrrr ((((CCCC----ffff))))
  2090.                Move forward a character.
  2091.           bbbbaaaacccckkkkwwwwaaaarrrrdddd----cccchhhhaaaarrrr ((((CCCC----bbbb))))
  2092.                Move back a character.
  2093.           ffffoooorrrrwwwwaaaarrrrdddd----wwwwoooorrrrdddd ((((MMMM----ffff))))
  2094.                Move forward to the end of the next word.  Words are
  2095.                composed of alphanumeric characters (letters and
  2096.                digits).
  2097.           bbbbaaaacccckkkkwwwwaaaarrrrdddd----wwwwoooorrrrdddd ((((MMMM----bbbb))))
  2098.                Move back to the start of this, or the previous, word.
  2099.                Words are composed of alphanumeric characters (letters
  2100.                and digits).
  2101.           cccclllleeeeaaaarrrr----ssssccccrrrreeeeeeeennnn ((((CCCC----llll))))
  2102.                Clear the screen leaving the current line at the top of
  2103.                the screen.  With an argument, refresh the current line
  2104.                without clearing the screen.
  2105.           rrrreeeeddddrrrraaaawwww----ccccuuuurrrrrrrreeeennnntttt----lllliiiinnnneeee
  2106.  
  2107.  
  2108.  
  2109.      Page 32                                          (printed 7/6/95)
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  2117.  
  2118.  
  2119.  
  2120.                Refresh the current line.  By default, this is unbound.
  2121.  
  2122.         CCCCoooommmmmmmmaaaannnnddddssss ffffoooorrrr MMMMaaaannnniiiippppuuuullllaaaattttiiiinnnngggg tttthhhheeee HHHHiiiissssttttoooorrrryyyy
  2123.           aaaacccccccceeeepppptttt----lllliiiinnnneeee ((((NNNNeeeewwwwlllliiiinnnneeee,,,, RRRReeeettttuuuurrrrnnnn))))
  2124.                Accept the line regardless of where the cursor is.  If
  2125.                this line is non-empty, add it to the history list
  2126.                according to the state of the HHHHIIIISSSSTTTTCCCCOOOONNNNTTTTRRRROOOOLLLL variable.  If
  2127.                the line is a modified history line, then restore the
  2128.                history line to its original state.
  2129.           pppprrrreeeevvvviiiioooouuuussss----hhhhiiiissssttttoooorrrryyyy ((((CCCC----pppp))))
  2130.                Fetch the previous command from the history list,
  2131.                moving back in the list.
  2132.           nnnneeeexxxxtttt----hhhhiiiissssttttoooorrrryyyy ((((CCCC----nnnn))))
  2133.                Fetch the next command from the history list, moving
  2134.                forward in the list.
  2135.           bbbbeeeeggggiiiinnnnnnnniiiinnnngggg----ooooffff----hhhhiiiissssttttoooorrrryyyy ((((MMMM----<<<<))))
  2136.                Move to the first line in the history.
  2137.           eeeennnndddd----ooooffff----hhhhiiiissssttttoooorrrryyyy ((((MMMM---->>>>))))
  2138.                Move to the end of the input history, i.e., the line
  2139.                currently being entered.
  2140.           rrrreeeevvvveeeerrrrsssseeee----sssseeeeaaaarrrrcccchhhh----hhhhiiiissssttttoooorrrryyyy ((((CCCC----rrrr))))
  2141.                Search backward starting at the current line and moving
  2142.                `up' through the history as necessary.  This is an
  2143.                incremental search.
  2144.           ffffoooorrrrwwwwaaaarrrrdddd----sssseeeeaaaarrrrcccchhhh----hhhhiiiissssttttoooorrrryyyy ((((CCCC----ssss))))
  2145.                Search forward starting at the current line and moving
  2146.                `down' through the history as necessary.  This is an
  2147.                incremental search.
  2148.           nnnnoooonnnn----iiiinnnnccccrrrreeeemmmmeeeennnnttttaaaallll----rrrreeeevvvveeeerrrrsssseeee----sssseeeeaaaarrrrcccchhhh----hhhhiiiissssttttoooorrrryyyy ((((MMMM----pppp))))
  2149.                Search backward through the history starting at the
  2150.                current line using a non-incremental search for a
  2151.                string supplied by the user.
  2152.           nnnnoooonnnn----iiiinnnnccccrrrreeeemmmmeeeennnnttttaaaallll----ffffoooorrrrwwwwaaaarrrrdddd----sssseeeeaaaarrrrcccchhhh----hhhhiiiissssttttoooorrrryyyy ((((MMMM----nnnn))))
  2153.                Search forward through the history using a
  2154.                non-incremental search for a string supplied by the
  2155.                user.
  2156.           hhhhiiiissssttttoooorrrryyyy----sssseeeeaaaarrrrcccchhhh----ffffoooorrrrwwwwaaaarrrrdddd
  2157.                Search forward through the history for the string of
  2158.                characters between the start of the current line and
  2159.                the current point.  This is a non-incremental search.
  2160.                By default, this command is unbound.
  2161.           hhhhiiiissssttttoooorrrryyyy----sssseeeeaaaarrrrcccchhhh----bbbbaaaacccckkkkwwwwaaaarrrrdddd
  2162.                Search backward through the history for the string of
  2163.                characters between the start of the current line and
  2164.                the current point.  This is a non-incremental search.
  2165.                By default, this command is unbound.
  2166.           yyyyaaaannnnkkkk----nnnntttthhhh----aaaarrrrgggg ((((MMMM----CCCC----yyyy))))
  2167.                Insert the first argument to the previous command
  2168.                (usually the second word on the previous line) at point
  2169.                (the current cursor position).  With an argument _n,
  2170.                insert the _nth word from the previous command (the
  2171.                words in the previous command begin with word 0).  A
  2172.  
  2173.  
  2174.  
  2175.      Page 33                                          (printed 7/6/95)
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.  
  2182.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  2183.  
  2184.  
  2185.  
  2186.                negative argument inserts the _nth word from the end of
  2187.                the previous command.
  2188.           yyyyaaaannnnkkkk----llllaaaasssstttt----aaaarrrrgggg ((((MMMM----....,,,, MMMM----____))))
  2189.                Insert the last argument to the previous command (the
  2190.                last word on the previous line).  With an argument,
  2191.                behave exactly like @code{yank-nth-arg}.
  2192.           sssshhhheeeellllllll----eeeexxxxppppaaaannnndddd----lllliiiinnnneeee ((((MMMM----CCCC----eeee))))
  2193.                Expand the line the way the shell does when it reads
  2194.                it.  This performs alias and history expansion as well
  2195.                as all of the shell word expansions.  See HHHHIIIISSSSTTTTOOOORRRRYYYY
  2196.                EEEEXXXXPPPPAAAANNNNSSSSIIIIOOOONNNN below for a description of history expansion.
  2197.           hhhhiiiissssttttoooorrrryyyy----eeeexxxxppppaaaannnndddd----lllliiiinnnneeee ((((MMMM----^^^^))))
  2198.                Perform history expansion on the current line.  See
  2199.                HHHHIIIISSSSTTTTOOOORRRRYYYY EEEEXXXXPPPPAAAANNNNSSSSIIIIOOOONNNN below for a description of history
  2200.                expansion.
  2201.           iiiinnnnsssseeeerrrrtttt----llllaaaasssstttt----aaaarrrrgggguuuummmmeeeennnntttt ((((MMMM----....,,,, MMMM----____))))
  2202.                A synonym for yyyyaaaannnnkkkk----llllaaaasssstttt----aaaarrrrgggg.
  2203.           ooooppppeeeerrrraaaatttteeee----aaaannnndddd----ggggeeeetttt----nnnneeeexxxxtttt ((((CCCC----oooo))))
  2204.                Accept the current line for execution and fetch the
  2205.                next line relative to the current line from the history
  2206.                for editing.  Any argument is ignored.
  2207.  
  2208.         CCCCoooommmmmmmmaaaannnnddddssss ffffoooorrrr CCCChhhhaaaannnnggggiiiinnnngggg TTTTeeeexxxxtttt
  2209.           ddddeeeelllleeeetttteeee----cccchhhhaaaarrrr ((((CCCC----dddd))))
  2210.                Delete the character under the cursor.  If point is at
  2211.                the beginning of the line, there are no characters in
  2212.                the line, and the last character typed was not CCCC----dddd,
  2213.                then return EEEEOOOOFFFF.
  2214.           bbbbaaaacccckkkkwwwwaaaarrrrdddd----ddddeeeelllleeeetttteeee----cccchhhhaaaarrrr ((((RRRRuuuubbbboooouuuutttt))))
  2215.                Delete the character behind the cursor.  When given a
  2216.                numeric argument, save the deleted text on the
  2217.                kill-ring.
  2218.           qqqquuuuooootttteeeedddd----iiiinnnnsssseeeerrrrtttt ((((CCCC----qqqq,,,, CCCC----vvvv))))
  2219.                Add the next character that you type to the line
  2220.                verbatim.  This is how to insert characters like CCCC----qqqq,
  2221.                for example.
  2222.           ttttaaaabbbb----iiiinnnnsssseeeerrrrtttt ((((CCCC----vvvv TTTTAAAABBBB))))
  2223.                Insert a tab character.
  2224.           sssseeeellllffff----iiiinnnnsssseeeerrrrtttt ((((aaaa,,,, bbbb,,,, AAAA,,,, 1111,,,, !!!!,,,, ............))))
  2225.                Insert the character typed.
  2226.           ttttrrrraaaannnnssssppppoooosssseeee----cccchhhhaaaarrrrssss ((((CCCC----tttt))))
  2227.                Drag the character before point forward over the
  2228.                character at point.  Point moves forward as well.  If
  2229.                point is at the end of the line, then transpose the two
  2230.                characters before point.  Negative arguments don't
  2231.                work.
  2232.           ttttrrrraaaannnnssssppppoooosssseeee----wwwwoooorrrrddddssss ((((MMMM----tttt))))
  2233.                Drag the word behind the cursor past the word in front
  2234.                of the cursor moving the cursor over that word as well.
  2235.           uuuuppppccccaaaasssseeee----wwwwoooorrrrdddd ((((MMMM----uuuu))))
  2236.                Uppercase the current (or following) word.  With a
  2237.                negative argument, do the previous word, but do not
  2238.  
  2239.  
  2240.  
  2241.      Page 34                                          (printed 7/6/95)
  2242.  
  2243.  
  2244.  
  2245.  
  2246.  
  2247.  
  2248.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  2249.  
  2250.  
  2251.  
  2252.                move point.
  2253.           ddddoooowwwwnnnnccccaaaasssseeee----wwwwoooorrrrdddd ((((MMMM----llll))))
  2254.                Lowercase the current (or following) word.  With a
  2255.                negative argument, do the previous word, but do not
  2256.                move point.
  2257.           ccccaaaappppiiiittttaaaalllliiiizzzzeeee----wwwwoooorrrrdddd ((((MMMM----cccc))))
  2258.                Capitalize the current (or following) word.  With a
  2259.                negative argument, do the previous word, but do not
  2260.                move point.
  2261.  
  2262.         KKKKiiiilllllllliiiinnnngggg aaaannnndddd YYYYaaaannnnkkkkiiiinnnngggg
  2263.           kkkkiiiillllllll----lllliiiinnnneeee ((((CCCC----kkkk))))
  2264.                Kill the text from the current cursor position to the
  2265.                end of the line.
  2266.           bbbbaaaacccckkkkwwwwaaaarrrrdddd----kkkkiiiillllllll----lllliiiinnnneeee ((((CCCC----xxxx CCCC----RRRRuuuubbbboooouuuutttt))))
  2267.                Kill backward to the beginning of the line.
  2268.           uuuunnnniiiixxxx----lllliiiinnnneeee----ddddiiiissssccccaaaarrrrdddd ((((CCCC----uuuu))))
  2269.                Kill backward from point to the beginning of the line.
  2270.           kkkkiiiillllllll----wwwwhhhhoooolllleeee----lllliiiinnnneeee
  2271.                Kill all characters on the current line, no matter
  2272.                where the cursor is.  By default, this is unbound.
  2273.           kkkkiiiillllllll----wwwwoooorrrrdddd ((((MMMM----dddd))))
  2274.                Kill from the cursor to the end of the current word, or
  2275.                if between words, to the end of the next word.  Word
  2276.                boundaries are the same as those used by ffffoooorrrrwwwwaaaarrrrdddd----wwwwoooorrrrdddd.
  2277.           bbbbaaaacccckkkkwwwwaaaarrrrdddd----kkkkiiiillllllll----wwwwoooorrrrdddd ((((MMMM----RRRRuuuubbbboooouuuutttt))))
  2278.                Kill the word behind the cursor.  Word boundaries are
  2279.                the same as those used by bbbbaaaacccckkkkwwwwaaaarrrrdddd----wwwwoooorrrrdddd.
  2280.           uuuunnnniiiixxxx----wwwwoooorrrrdddd----rrrruuuubbbboooouuuutttt ((((CCCC----wwww))))
  2281.                Kill the word behind the cursor, using white space as a
  2282.                word boundary.  The word boundaries are different from
  2283.                backward-kill-word.
  2284.           ddddeeeelllleeeetttteeee----hhhhoooorrrriiiizzzzoooonnnnttttaaaallll----ssssppppaaaacccceeee
  2285.                Delete all spaces and tabs around point.  By default,
  2286.                this is unbound.
  2287.           yyyyaaaannnnkkkk ((((CCCC----yyyy))))
  2288.                Yank the top of the kill ring into the buffer at the
  2289.                cursor.
  2290.           yyyyaaaannnnkkkk----ppppoooopppp ((((MMMM----yyyy))))
  2291.                Rotate the kill-ring, and yank the new top.  Only works
  2292.                following yyyyaaaannnnkkkk or yyyyaaaannnnkkkk----ppppoooopppp.
  2293.  
  2294.         NNNNuuuummmmeeeerrrriiiicccc AAAArrrrgggguuuummmmeeeennnnttttssss
  2295.           ddddiiiiggggiiiitttt----aaaarrrrgggguuuummmmeeeennnntttt ((((MMMM----0000,,,, MMMM----1111,,,, ............,,,, MMMM--------))))
  2296.                Add this digit to the argument already accumulating, or
  2297.                start a new argument.  M-- starts a negative argument.
  2298.           uuuunnnniiiivvvveeeerrrrssssaaaallll----aaaarrrrgggguuuummmmeeeennnntttt
  2299.                Each time this is executed, the argument count is
  2300.                multiplied by four.  The argument count is initially
  2301.                one, so executing this function the first time makes
  2302.                the argument count four.  By default, this is not bound
  2303.                to a key.
  2304.  
  2305.  
  2306.  
  2307.      Page 35                                          (printed 7/6/95)
  2308.  
  2309.  
  2310.  
  2311.  
  2312.  
  2313.  
  2314.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  2315.  
  2316.  
  2317.  
  2318.         CCCCoooommmmpppplllleeeettttiiiinnnngggg
  2319.           ccccoooommmmpppplllleeeetttteeee ((((TTTTAAAABBBB))))
  2320.                Attempt to perform completion on the text before point.
  2321.                BBBBaaaasssshhhh attempts completion treating the text as a
  2322.                variable (if the text begins with $$$$), username (if the
  2323.                text begins with ~~~~), hostname (if the text begins with
  2324.                @@@@), or command (including aliases and functions) in
  2325.                turn.  If none of these produces a match, filename
  2326.                completion is attempted.
  2327.           ppppoooossssssssiiiibbbblllleeee----ccccoooommmmpppplllleeeettttiiiioooonnnnssss ((((MMMM----????))))
  2328.                List the possible completions of the text before point.
  2329.           iiiinnnnsssseeeerrrrtttt----ccccoooommmmpppplllleeeettttiiiioooonnnnssss
  2330.                Insert all completions of the text before point that
  2331.                would have been generated by ppppoooossssssssiiiibbbblllleeee----ccccoooommmmpppplllleeeettttiiiioooonnnnssss.  By
  2332.                default, this is not bound to a key.
  2333.           ccccoooommmmpppplllleeeetttteeee----ffffiiiilllleeeennnnaaaammmmeeee ((((MMMM----////))))
  2334.                Attempt filename completion on the text before point.
  2335.           ppppoooossssssssiiiibbbblllleeee----ffffiiiilllleeeennnnaaaammmmeeee----ccccoooommmmpppplllleeeettttiiiioooonnnnssss ((((CCCC----xxxx ////))))
  2336.                List the possible completions of the text before point,
  2337.                treating it as a filename.
  2338.           ccccoooommmmpppplllleeeetttteeee----uuuusssseeeerrrrnnnnaaaammmmeeee ((((MMMM----~~~~))))
  2339.                Attempt completion on the text before point, treating
  2340.                it as a username.
  2341.           ppppoooossssssssiiiibbbblllleeee----uuuusssseeeerrrrnnnnaaaammmmeeee----ccccoooommmmpppplllleeeettttiiiioooonnnnssss ((((CCCC----xxxx ~~~~))))
  2342.                List the possible completions of the text before point,
  2343.                treating it as a username.
  2344.           ccccoooommmmpppplllleeeetttteeee----vvvvaaaarrrriiiiaaaabbbblllleeee ((((MMMM----$$$$))))
  2345.                Attempt completion on the text before point, treating
  2346.                it as a shell variable.
  2347.           ppppoooossssssssiiiibbbblllleeee----vvvvaaaarrrriiiiaaaabbbblllleeee----ccccoooommmmpppplllleeeettttiiiioooonnnnssss ((((CCCC----xxxx $$$$))))
  2348.                List the possible completions of the text before point,
  2349.                treating it as a shell variable.
  2350.           ccccoooommmmpppplllleeeetttteeee----hhhhoooossssttttnnnnaaaammmmeeee ((((MMMM----@@@@))))
  2351.                Attempt completion on the text before point, treating
  2352.                it as a hostname.
  2353.           ppppoooossssssssiiiibbbblllleeee----hhhhoooossssttttnnnnaaaammmmeeee----ccccoooommmmpppplllleeeettttiiiioooonnnnssss ((((CCCC----xxxx @@@@))))
  2354.                List the possible completions of the text before point,
  2355.                treating it as a hostname.
  2356.           ccccoooommmmpppplllleeeetttteeee----ccccoooommmmmmmmaaaannnndddd ((((MMMM----!!!!))))
  2357.                Attempt completion on the text before point, treating
  2358.                it as a command name.  Command completion attempts to
  2359.                match the text against aliases, reserved words, shell
  2360.                functions, builtins, and finally executable filenames,
  2361.                in that order.
  2362.           ppppoooossssssssiiiibbbblllleeee----ccccoooommmmmmmmaaaannnndddd----ccccoooommmmpppplllleeeettttiiiioooonnnnssss ((((CCCC----xxxx !!!!))))
  2363.                List the possible completions of the text before point,
  2364.                treating it as a command name.
  2365.           ddddyyyynnnnaaaammmmiiiicccc----ccccoooommmmpppplllleeeetttteeee----hhhhiiiissssttttoooorrrryyyy ((((MMMM----TTTTAAAABBBB))))
  2366.                Attempt completion on the text before point, comparing
  2367.                the text against lines from the history list for
  2368.                possible completion matches.
  2369.           ccccoooommmmpppplllleeeetttteeee----iiiinnnnttttoooo----bbbbrrrraaaacccceeeessss ((((MMMM----{{{{))))
  2370.  
  2371.  
  2372.  
  2373.      Page 36                                          (printed 7/6/95)
  2374.  
  2375.  
  2376.  
  2377.  
  2378.  
  2379.  
  2380.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  2381.  
  2382.  
  2383.  
  2384.                Perform filename completion and return the list of
  2385.                possible completions enclosed within braces so the list
  2386.                is available to the shell (see BBBBrrrraaaacccceeee EEEExxxxppppaaaannnnssssiiiioooonnnn above).
  2387.  
  2388.         KKKKeeeeyyyybbbbooooaaaarrrrdddd MMMMaaaaccccrrrroooossss
  2389.           ssssttttaaaarrrrtttt----kkkkbbbbdddd----mmmmaaaaccccrrrroooo ((((CCCC----xxxx (((())))
  2390.                Begin saving the characters typed into the current
  2391.                keyboard macro.
  2392.           eeeennnndddd----kkkkbbbbdddd----mmmmaaaaccccrrrroooo ((((CCCC----xxxx ))))))))
  2393.                Stop saving the characters typed into the current
  2394.                keyboard macro and save the definition.
  2395.           ccccaaaallllllll----llllaaaasssstttt----kkkkbbbbdddd----mmmmaaaaccccrrrroooo ((((CCCC----xxxx eeee))))
  2396.                Re-execute the last keyboard macro defined, by making
  2397.                the characters in the macro appear as if typed at the
  2398.                keyboard.
  2399.  
  2400.         MMMMiiiisssscccceeeellllllllaaaannnneeeeoooouuuussss
  2401.           rrrreeee----rrrreeeeaaaadddd----iiiinnnniiiitttt----ffffiiiilllleeee ((((CCCC----xxxx CCCC----rrrr))))
  2402.                Read in the contents of your init file, and incorporate
  2403.                any bindings or variable assignments found there.
  2404.           aaaabbbboooorrrrtttt ((((CCCC----gggg))))
  2405.                Abort the current editing command and ring the
  2406.                terminal's bell (subject to the setting of bbbbeeeellllllll----ssssttttyyyylllleeee).
  2407.           ddddoooo----uuuuppppppppeeeerrrrccccaaaasssseeee----vvvveeeerrrrssssiiiioooonnnn ((((MMMM----aaaa,,,, MMMM----bbbb,,,, ............))))
  2408.                Run the command that is bound to the corresponding
  2409.                uppercase character.
  2410.           pppprrrreeeeffffiiiixxxx----mmmmeeeettttaaaa ((((EEEESSSSCCCC))))
  2411.                Metafy the next character typed.  EEEESSSSCCCC ffff is equivalent
  2412.                to MMMMeeeettttaaaa----ffff.
  2413.           uuuunnnnddddoooo ((((CCCC----____,,,, CCCC----xxxx CCCC----uuuu))))
  2414.                Incremental undo, separately remembered for each line.
  2415.           rrrreeeevvvveeeerrrrtttt----lllliiiinnnneeee ((((MMMM----rrrr))))
  2416.                Undo all changes made to this line.  This is like
  2417.                typing the uuuunnnnddddoooo command enough times to return the line
  2418.                to its initial state.
  2419.           ttttiiiillllddddeeee----eeeexxxxppppaaaannnndddd ((((MMMM----~~~~))))
  2420.                Perform tilde expansion on the current word.
  2421.           dddduuuummmmpppp----ffffuuuunnnnccccttttiiiioooonnnnssss
  2422.                Print all of the functions and their key bindings to
  2423.                the readline output stream.  If a numeric argument is
  2424.                supplied, the output is formatted in such a way that it
  2425.                can be made part of an _i_n_p_u_t_r_c file.
  2426.           ddddiiiissssppppllllaaaayyyy----sssshhhheeeellllllll----vvvveeeerrrrssssiiiioooonnnn ((((CCCC----xxxx CCCC----vvvv))))
  2427.                Display version information about the current instance
  2428.                of bbbbaaaasssshhhh.
  2429.           eeeemmmmaaaaccccssss----eeeeddddiiiittttiiiinnnngggg----mmmmooooddddeeee ((((CCCC----eeee))))
  2430.                When in vvvviiii editing mode, this causes a switch to eeeemmmmaaaaccccssss
  2431.                editing mode.
  2432.  
  2433.      HHHHIIIISSSSTTTTOOOORRRRYYYY
  2434.           When interactive, the shell provides access to the _c_o_m_m_a_n_d
  2435.           _h_i_s_t_o_r_y, the list of commands previously typed.  The text of
  2436.  
  2437.  
  2438.  
  2439.      Page 37                                          (printed 7/6/95)
  2440.  
  2441.  
  2442.  
  2443.  
  2444.  
  2445.  
  2446.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  2447.  
  2448.  
  2449.  
  2450.           the last HHHHIIIISSSSTTTTSSSSIIIIZZZZEEEE commands (default 500) is saved in a
  2451.           history list.  The shell stores each command in the history
  2452.           list prior to parameter and variable expansion (see
  2453.           EEEEXXXXPPPPAAAANNNNSSSSIIIIOOOONNNN above) but after history expansion is performed,
  2454.           subject to the values of the shell variables
  2455.           ccccoooommmmmmmmaaaannnndddd____oooorrrriiiieeeennnntttteeeedddd____hhhhiiiissssttttoooorrrryyyy and HHHHIIIISSSSTTTTCCCCOOOONNNNTTTTRRRROOOOLLLL.  On startup, the
  2456.           history is initialized from the file named by the variable
  2457.           HHHHIIIISSSSTTTTFFFFIIIILLLLEEEE (default ~/._b_a_s_h__h_i_s_t_o_r_y).  HHHHIIIISSSSTTTTFFFFIIIILLLLEEEE is truncated,
  2458.           if necessary, to contain no more than HHHHIIIISSSSTTTTFFFFIIIILLLLEEEESSSSIIIIZZZZEEEE lines.
  2459.           The builtin command ffffcccc (see SSSSHHHHEEEELLLLLLLL BBBBUUUUIIIILLLLTTTTIIIINNNN CCCCOOOOMMMMMMMMAAAANNNNDDDDSSSS below)
  2460.           may be used to list or edit and re-execute a portion of the
  2461.           history list.  The hhhhiiiissssttttoooorrrryyyy builtin can be used to display
  2462.           the history list and manipulate the history file.  When
  2463.           using the command-line editing, search commands are
  2464.           available in each editing mode that provide access to the
  2465.           history list.  When an interactive shell exits, the last
  2466.           HHHHIIIISSSSTTTTSSSSIIIIZZZZEEEE lines are copied from the history list to HHHHIIIISSSSTTTTFFFFIIIILLLLEEEE.
  2467.           If HHHHIIIISSSSTTTTFFFFIIIILLLLEEEE is unset, or if the history file is unwritable,
  2468.           the history is not saved.
  2469.  
  2470.      HHHHIIIISSSSTTTTOOOORRRRYYYY EEEEXXXXPPPPAAAANNNNSSSSIIIIOOOONNNN
  2471.           The shell supports a history expansion feature that is
  2472.           similar to the history expansion in ccccsssshhhh....  This section
  2473.           describes what syntax features are available.  This feature
  2474.           is enabled by default for interactive shells, and can be
  2475.           disabled using the ++++HHHH option to the sssseeeetttt builtin command (see
  2476.           SSSSHHHHEEEELLLLLLLL BBBBUUUUIIIILLLLTTTTIIIINNNN CCCCOOOOMMMMMMMMAAAANNNNDDDDSSSS below).  Non-interactive shells do
  2477.           not perform history expansion.
  2478.  
  2479.           History expansion is performed immediately after a complete
  2480.           line is read, before the shell breaks it into words.  It
  2481.           takes place in two parts.  The first is to determine which
  2482.           line from the previous history to use during substitution.
  2483.           The second is to select portions of that line for inclusion
  2484.           into the current one.  The line selected from the previous
  2485.           history is the _e_v_e_n_t, and the portions of that line that are
  2486.           acted upon are _w_o_r_d_s.  The line is broken into words in the
  2487.           same fashion as when reading input, so that several
  2488.           _m_e_t_a_c_h_a_r_a_c_t_e_r-separated words surrounded by quotes are
  2489.           considered as one word.  Only backslash (\\\\) and single
  2490.           quotes can quote the history escape character, which is !!!! by
  2491.           default.
  2492.  
  2493.           The shell allows control of the various characters used by
  2494.           the history expansion mechanism (see the description of
  2495.           hhhhiiiissssttttcccchhhhaaaarrrrssss above under SSSShhhheeeellllllll VVVVaaaarrrriiiiaaaabbbblllleeeessss).
  2496.  
  2497.         EEEEvvvveeeennnntttt DDDDeeeessssiiiiggggnnnnaaaattttoooorrrrssss
  2498.           An event designator is a reference to a command line entry
  2499.           in the history list.
  2500.  
  2501.           !!!!    Start a history substitution, except when followed by a
  2502.  
  2503.  
  2504.  
  2505.      Page 38                                          (printed 7/6/95)
  2506.  
  2507.  
  2508.  
  2509.  
  2510.  
  2511.  
  2512.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  2513.  
  2514.  
  2515.  
  2516.                bbbbllllaaaannnnkkkk, newline, = or (.
  2517.           !!!!!!!!   Refer to the previous command.  This is a synonym for
  2518.                `!-1'.
  2519.           !!!!_n   Refer to command line _n.
  2520.           !!!!----_n  Refer to the current command line minus _n.
  2521.           !!!!_s_t_r_i_n_g
  2522.                Refer to the most recent command starting with _s_t_r_i_n_g.
  2523.           !!!!????_s_t_r_i_n_g[[[[????]]]]
  2524.                Refer to the most recent command containing _s_t_r_i_n_g.
  2525.           ^^^^_s_t_r_i_n_g_1^^^^_s_t_r_i_n_g_2^^^^
  2526.                Quick substitution.  Repeat the last command, replacing
  2527.                _s_t_r_i_n_g_1 with _s_t_r_i_n_g_2.  Equivalent to
  2528.                ``!!:s/_s_t_r_i_n_g_1/_s_t_r_i_n_g_2/'' (see MMMMooooddddiiiiffffiiiieeeerrrrssss below).
  2529.           !!!!####   The entire command line typed so far.
  2530.  
  2531.         WWWWoooorrrrdddd DDDDeeeessssiiiiggggnnnnaaaattttoooorrrrssss
  2532.           A :::: separates the event specification from the word
  2533.           designator.  It can be omitted if the word designator begins
  2534.           with a ^^^^, $$$$, ****, or %%%%.  Words are numbered from the beginning
  2535.           of the line, with the first word being denoted by a 0
  2536.           (zero).
  2537.  
  2538.           0000 ((((zzzzeeeerrrroooo))))
  2539.                The zeroth word.  For the shell, this is the command
  2540.                word.
  2541.           _n    The _nth word.
  2542.           ^^^^    The first argument.  That is, word 1.
  2543.           $$$$    The last argument.
  2544.           %%%%    The word matched by the most recent `?_s_t_r_i_n_g?' search.
  2545.           _x----_y  A range of words; `-_y' abbreviates `0-_y'.
  2546.           ****    All of the words but the zeroth.  This is a synonym for
  2547.                `_1-$'.  It is not an error to use **** if there is just
  2548.                one word in the event; the empty string is returned in
  2549.                that case.
  2550.           xxxx****   Abbreviates _x-$.
  2551.           xxxx----   Abbreviates _x-$ like xxxx****, but omits the last word.
  2552.  
  2553.         MMMMooooddddiiiiffffiiiieeeerrrrssss
  2554.           After the optional word designator, you can add a sequence
  2555.           of one or more of the following modifiers, each preceded by
  2556.           a `:'.
  2557.  
  2558.           hhhh    Remove a trailing pathname component, leaving only the
  2559.                head.
  2560.           rrrr    Remove a trailing suffix of the form ._x_x_x, leaving the
  2561.                basename.
  2562.           eeee    Remove all but the trailing suffix.
  2563.           tttt    Remove all leading pathname components, leaving the
  2564.                tail.
  2565.           pppp    Print the new command but do not execute it.
  2566.           qqqq    Quote the substituted words, escaping further
  2567.                substitutions.
  2568.  
  2569.  
  2570.  
  2571.      Page 39                                          (printed 7/6/95)
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  2579.  
  2580.  
  2581.  
  2582.           xxxx    Quote the substituted words as with qqqq, but break into
  2583.                words at bbbbllllaaaannnnkkkkssss and newlines.
  2584.           ssss////_o_l_d////_n_e_w////
  2585.                Substitute _n_e_w for the first occurrence of _o_l_d in the
  2586.                event line.  Any delimiter can be used in place of /.
  2587.                The final delimiter is optional if it is the last
  2588.                character of the event line.  The delimiter may be
  2589.                quoted in _o_l_d and _n_e_w with a single backslash.  If &
  2590.                appears in _n_e_w, it is replaced by _o_l_d.  A single
  2591.                backslash will quote the &.
  2592.           &&&&    Repeat the previous substitution.
  2593.           gggg    Cause changes to be applied over the entire event line.
  2594.                This is used in conjunction with `::::ssss' (e.g.,
  2595.                `::::ggggssss////_o_l_d////_n_e_w////') or `::::&&&&'.  If used with `::::ssss', any
  2596.                delimiter can be used in place of /, and the final
  2597.                delimiter is optional if it is the last character of
  2598.                the event line.
  2599.  
  2600.      AAAARRRRIIIITTTTHHHHMMMMEEEETTTTIIIICCCC EEEEVVVVAAAALLLLUUUUAAAATTTTIIIIOOOONNNN
  2601.           The shell allows arithmetic expressions to be evaluated,
  2602.           under certain circumstances (see the lllleeeetttt builtin command and
  2603.           AAAArrrriiiitttthhhhmmmmeeeettttiiiicccc EEEExxxxppppaaaannnnssssiiiioooonnnn).  Evaluation is done in long integers
  2604.           with no check for overflow, though division by 0 is trapped
  2605.           and flagged as an error.  The following list of operators is
  2606.           grouped into levels of equal-precedence operators.  The
  2607.           levels are listed in order of decreasing precedence.
  2608.  
  2609.           ---- ++++  unary minus and plus
  2610.           !!!! ~~~~  logical and bitwise negation
  2611.           **** //// %%%%
  2612.                multiplication, division, remainder
  2613.           ++++ ----  addition, subtraction
  2614.           <<<<<<<< >>>>>>>>
  2615.                left and right bitwise shifts
  2616.           <<<<==== >>>>==== <<<< >>>>
  2617.                comparison
  2618.           ======== !!!!====
  2619.                equality and inequality
  2620.           &&&&    bitwise AND
  2621.           ^^^^    bitwise exclusive OR
  2622.           ||||    bitwise OR
  2623.           &&&&&&&&   logical AND
  2624.           ||||||||   logical OR
  2625.           ==== ****==== ////==== %%%%==== ++++==== ----====
  2626.                assignment
  2627.  
  2628.           Shell variables are allowed as operands; parameter expansion
  2629.           is performed before the expression is evaluated. The value
  2630.           of a parameter is coerced to a long integer within an
  2631.           expression.  A shell variable need not have its integer
  2632.           attribute turned on to be used in an expression.
  2633.  
  2634.  
  2635.  
  2636.  
  2637.      Page 40                                          (printed 7/6/95)
  2638.  
  2639.  
  2640.  
  2641.  
  2642.  
  2643.  
  2644.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  2645.  
  2646.  
  2647.  
  2648.           Constants with a leading 0 are interpreted as octal numbers.
  2649.           A leading _0_x or _0_X denotes hexadecimal.  Otherwise, numbers
  2650.           take the form [_b_a_s_e#]n, where _b_a_s_e is a decimal number
  2651.           between 2 and 36 representing the arithmetic base, and _n is
  2652.           a number in that base.  If _b_a_s_e is omitted, then base 10 is
  2653.           used.
  2654.  
  2655.           Operators are evaluated in order of precedence.  Sub-
  2656.           expressions in parentheses are evaluated first and may
  2657.           override the precedence rules above.
  2658.  
  2659.      SSSSHHHHEEEELLLLLLLL BBBBUUUUIIIILLLLTTTTIIIINNNN CCCCOOOOMMMMMMMMAAAANNNNDDDDSSSS
  2660.           :::: [_a_r_g_u_m_e_n_t_s]
  2661.                No effect; the command does nothing beyond expanding
  2662.                _a_r_g_u_m_e_n_t_s and performing any specified redirections.  A
  2663.                zero exit code is returned.
  2664.  
  2665.            ....  _f_i_l_e_n_a_m_e [_a_r_g_u_m_e_n_t_s]
  2666.           ssssoooouuuurrrrcccceeee _f_i_l_e_n_a_m_e [_a_r_g_u_m_e_n_t_s]
  2667.                Read and execute commands from _f_i_l_e_n_a_m_e in the current
  2668.                shell environment and return the exit status of the
  2669.                last command executed from _f_i_l_e_n_a_m_e.  If _f_i_l_e_n_a_m_e does
  2670.                not contain a slash, pathnames in PPPPAAAATTTTHHHH are used to find
  2671.                the directory containing _f_i_l_e_n_a_m_e.  The file searched
  2672.                for in PPPPAAAATTTTHHHH need not be executable.  The current
  2673.                directory is searched if no file is found in PPPPAAAATTTTHHHH.  If
  2674.                any _a_r_g_u_m_e_n_t_s are supplied, they become the positional
  2675.                parameters when _f_i_l_e is executed.  Otherwise the
  2676.                positional parameters are unchanged.  The return status
  2677.                is the status of the last command exited within the
  2678.                script (0 if no commands are executed), and false if
  2679.                _f_i_l_e_n_a_m_e is not found.
  2680.  
  2681.           aaaalllliiiiaaaassss [_n_a_m_e[=_v_a_l_u_e] ...]
  2682.                AAAAlllliiiiaaaassss with no arguments prints the list of aliases in
  2683.                the form _n_a_m_e=_v_a_l_u_e on standard output.  When arguments
  2684.                are supplied, an alias is defined for each _n_a_m_e whose
  2685.                _v_a_l_u_e is given.  A trailing space in _v_a_l_u_e causes the
  2686.                next word to be checked for alias substitution when the
  2687.                alias is expanded.  For each _n_a_m_e in the argument list
  2688.                for which no _v_a_l_u_e is supplied, the name and value of
  2689.                the alias is printed.  AAAAlllliiiiaaaassss returns true unless a _n_a_m_e
  2690.                is given for which no alias has been defined.
  2691.  
  2692.           bbbbgggg [_j_o_b_s_p_e_c]
  2693.                Place _j_o_b_s_p_e_c in the background, as if it had been
  2694.                started with &&&&.  If _j_o_b_s_p_e_c is not present, the shell's
  2695.                notion of the _c_u_r_r_e_n_t _j_o_b is used.  bbbbgggg _j_o_b_s_p_e_c returns
  2696.                0 unless run when job control is disabled or, when run
  2697.                with job control enabled, if _j_o_b_s_p_e_c was not found or
  2698.                started without job control.
  2699.  
  2700.  
  2701.  
  2702.  
  2703.      Page 41                                          (printed 7/6/95)
  2704.  
  2705.  
  2706.  
  2707.  
  2708.  
  2709.  
  2710.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  2711.  
  2712.  
  2713.  
  2714.           bbbbiiiinnnndddd [----mmmm _k_e_y_m_a_p] [----llllvvvvdddd] [----qqqq _n_a_m_e]
  2715.           bbbbiiiinnnndddd [----mmmm _k_e_y_m_a_p] ----ffff _f_i_l_e_n_a_m_e
  2716.           bbbbiiiinnnndddd [----mmmm _k_e_y_m_a_p] _k_e_y_s_e_q:_f_u_n_c_t_i_o_n-_n_a_m_e
  2717.                Display current rrrreeeeaaaaddddlllliiiinnnneeee key and function bindings, or
  2718.                bind a key sequence to a rrrreeeeaaaaddddlllliiiinnnneeee function or macro.
  2719.                The binding syntax accepted is identical to that of
  2720.                ._i_n_p_u_t_r_c, but each binding must be passed as a separate
  2721.                argument; e.g., '"\C-x\C-r": re-read-init-file'.
  2722.                Options, if supplied, have the following meanings:
  2723.                ----mmmm _k_e_y_m_a_p
  2724.                     Use _k_e_y_m_a_p as the keymap to be affected by the
  2725.                     subsequent bindings.  Acceptable _k_e_y_m_a_p names are
  2726.                     _e_m_a_c_s, _e_m_a_c_s-_s_t_a_n_d_a_r_d, _e_m_a_c_s-_m_e_t_a, _e_m_a_c_s-_c_t_l_x, _v_i,
  2727.                     _v_i-_m_o_v_e, _v_i-_c_o_m_m_a_n_d, and _v_i-_i_n_s_e_r_t.  _v_i is
  2728.                     equivalent to _v_i-_c_o_m_m_a_n_d; _e_m_a_c_s is equivalent to
  2729.                     _e_m_a_c_s-_s_t_a_n_d_a_r_d.
  2730.                ----llll   List the names of all rrrreeeeaaaaddddlllliiiinnnneeee functions
  2731.                ----vvvv   List current function names and bindings
  2732.                ----dddd   Dump function names and bindings in such a way
  2733.                     that they can be re-read
  2734.                ----ffff _f_i_l_e_n_a_m_e
  2735.                     Read key bindings from _f_i_l_e_n_a_m_e
  2736.                ----qqqq _f_u_n_c_t_i_o_n
  2737.                     Query about which keys invoke the named _f_u_n_c_t_i_o_n
  2738.  
  2739.                The return value is 0 unless an unrecognized option is
  2740.                given or an error occurred.
  2741.  
  2742.           bbbbrrrreeeeaaaakkkk [_n]
  2743.                Exit from within a ffffoooorrrr, wwwwhhhhiiiilllleeee, or uuuunnnnttttiiiillll loop.  If _n is
  2744.                specified, break _n levels.  _n must be >_ 1.  If _n is
  2745.                greater than the number of enclosing loops, all
  2746.                enclosing loops are exited.  The return value is 0
  2747.                unless the shell is not executing a loop when bbbbrrrreeeeaaaakkkk is
  2748.                executed.
  2749.  
  2750.           bbbbuuuuiiiillllttttiiiinnnn _s_h_e_l_l-_b_u_i_l_t_i_n [_a_r_g_u_m_e_n_t_s]
  2751.                Execute the specified shell builtin, passing it
  2752.                _a_r_g_u_m_e_n_t_s, and return its exit status.  This is useful
  2753.                when you wish to define a function whose name is the
  2754.                same as a shell builtin, but need the functionality of
  2755.                the builtin within the function itself.  The ccccdddd builtin
  2756.                is commonly redefined this way.  The return status is
  2757.                false if _s_h_e_l_l-_b_u_i_l_t_i_n is not a shell builtin command.
  2758.  
  2759.           ccccdddd [_d_i_r]
  2760.                Change the current directory to _d_i_r.  The variable HHHHOOOOMMMMEEEE
  2761.                is the default _d_i_r.  The variable CCCCDDDDPPPPAAAATTTTHHHH defines the
  2762.                search path for the directory containing _d_i_r.
  2763.                Alternative directory names are separated by a colon
  2764.                (:).  A null directory name in CCCCDDDDPPPPAAAATTTTHHHH is the same as
  2765.                the current directory, i.e., ``....''.  If _d_i_r begins with
  2766.  
  2767.  
  2768.  
  2769.      Page 42                                          (printed 7/6/95)
  2770.  
  2771.  
  2772.  
  2773.  
  2774.  
  2775.  
  2776.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  2777.  
  2778.  
  2779.  
  2780.                a slash (/), then CCCCDDDDPPPPAAAATTTTHHHH is not used.  An argument of ----
  2781.                is equivalent to $$$$OOOOLLLLDDDDPPPPWWWWDDDD.  The return value is true if
  2782.                the directory was successfully changed; false
  2783.                otherwise.
  2784.  
  2785.           ccccoooommmmmmmmaaaannnndddd [----ppppVVVVvvvv] _c_o_m_m_a_n_d [_a_r_g ...]
  2786.                Run _c_o_m_m_a_n_d with _a_r_g_s suppressing the normal shell
  2787.                function lookup. Only builtin commands or commands
  2788.                found in the PPPPAAAATTTTHHHH are executed.  If the ----pppp option is
  2789.                given, the search for _c_o_m_m_a_n_d is performed using a
  2790.                default value for PPPPAAAATTTTHHHH that is guaranteed to find all
  2791.                of the standard utilities.  If either the ----VVVV or ----vvvv
  2792.                option is supplied, a description of _c_o_m_m_a_n_d is
  2793.                printed.  The ----vvvv option causes a single word indicating
  2794.                the command or pathname used to invoke _c_o_m_m_a_n_d to be
  2795.                printed; the ----VVVV option produces a more verbose
  2796.                description.  An argument of -------- disables option
  2797.                checking for the rest of the arguments.  If the ----VVVV or
  2798.                ----vvvv option is supplied, the exit status is 0 if _c_o_m_m_a_n_d
  2799.                was found, and 1 if not.  If neither option is supplied
  2800.                and an error occurred or _c_o_m_m_a_n_d cannot be found, the
  2801.                exit status is 127.  Otherwise, the exit status of the
  2802.                ccccoooommmmmmmmaaaannnndddd builtin is the exit status of _c_o_m_m_a_n_d.
  2803.  
  2804.           ccccoooonnnnttttiiiinnnnuuuueeee [_n]
  2805.                Resume the next iteration of the enclosing ffffoooorrrr, wwwwhhhhiiiilllleeee,
  2806.                or uuuunnnnttttiiiillll loop.  If _n is specified, resume at the _nth
  2807.                enclosing loop.  _n must be >_ 1.  If _n is greater than
  2808.                the number of enclosing loops, the last enclosing loop
  2809.                (the `top-level' loop) is resumed.  The return value is
  2810.                0 unless the shell is not executing a loop when
  2811.                ccccoooonnnnttttiiiinnnnuuuueeee is executed.
  2812.  
  2813.           ddddeeeeccccllllaaaarrrreeee [----ffffrrrrxxxxiiii] [_n_a_m_e[=_v_a_l_u_e]]
  2814.           ttttyyyyppppeeeesssseeeetttt [----ffffrrrrxxxxiiii] [_n_a_m_e[=_v_a_l_u_e]]
  2815.                Declare variables and/or give them attributes.  If no
  2816.                _n_a_m_es are given, then display the values of variables
  2817.                instead.  The options can be used to restrict output to
  2818.                variables with the specified attribute.
  2819.                ----ffff   Use function names only
  2820.                ----rrrr   Make _n_a_m_es readonly.  These names cannot then be
  2821.                     assigned values by subsequent assignment
  2822.                     statements.
  2823.                ----xxxx   Mark _n_a_m_es for export to subsequent commands via
  2824.                     the environment.
  2825.                ----iiii   The variable is treated as an integer; arithmetic
  2826.                     evaluation (see AAAARRRRIIIITTTTHHHHMMMMEEEETTTTIIIICCCC EEEEVVVVAAAALLLLUUUUAAAATTTTIIIIOOOONNNN )))) is
  2827.                     performed when the variable is assigned a value.
  2828.  
  2829.                Using `+' instead of `-' turns off the attribute
  2830.                instead.  When used in a function, makes _n_a_m_es local,
  2831.                as with the llllooooccccaaaallll command.  The return value is 0
  2832.  
  2833.  
  2834.  
  2835.      Page 43                                          (printed 7/6/95)
  2836.  
  2837.  
  2838.  
  2839.  
  2840.  
  2841.  
  2842.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  2843.  
  2844.  
  2845.  
  2846.                unless an illegal option is encountered, an attempt is
  2847.                made to define a function using "-f foo=bar", one of
  2848.                the _n_a_m_e_s is not a legal shell variable name, an
  2849.                attempt is made to turn off readonly status for a
  2850.                readonly variable, or an attempt is made to display a
  2851.                non-existant function with -f.
  2852.  
  2853.           ddddiiiirrrrssss [[[[----llll]]]] [[[[++++////----nnnn]]]]
  2854.                Display the list of currently remembered directories.
  2855.                Directories are added to the list with the ppppuuuusssshhhhdddd
  2856.                command; the ppppooooppppdddd command moves back up through the
  2857.                list.
  2858.                ++++nnnn   displays the _nth entry counting from the left of
  2859.                     the list shown by ddddiiiirrrrssss when invoked without
  2860.                     options, starting with zero.
  2861.                ----nnnn   displays the _nth entry counting from the right of
  2862.                     the list shown by ddddiiiirrrrssss when invoked without
  2863.                     options, starting with zero.
  2864.                ----llll   produces a longer listing; the default listing
  2865.                     format uses a tilde to denote the home directory.
  2866.  
  2867.                The return value is 0 unless an illegal option is
  2868.                supplied or _n indexes beyond the end of the directory
  2869.                stack.
  2870.  
  2871.           eeeecccchhhhoooo [----nnnneeeeEEEE] [_a_r_g ...]
  2872.                Output the _a_r_gs, separated by spaces.  The return
  2873.                status is always 0.  If ----nnnn is specified, the trailing
  2874.                newline is suppressed.  If the ----eeee option is given,
  2875.                interpretation of the following backslash-escaped
  2876.                characters is enabled.  The ----EEEE option disables the
  2877.                interpretation of these escape characters, even on
  2878.                systems where they are interpreted by default.
  2879.                \\\\aaaa   alert (bell)
  2880.                \\\\bbbb   backspace
  2881.                \\\\cccc   suppress trailing newline
  2882.                \\\\ffff   form feed
  2883.                \\\\nnnn   new line
  2884.                \\\\rrrr   carriage return
  2885.                \\\\tttt   horizontal tab
  2886.                \\\\vvvv   vertical tab
  2887.                \\\\\\\\   backslash
  2888.                \\\\nnnnnnnnnnnn the character whose ASCII code is _n_n_n (octal)
  2889.  
  2890.           eeeennnnaaaabbbblllleeee [----nnnn] [----aaaallllllll] [_n_a_m_e ...]
  2891.                Enable and disable builtin shell commands.  This allows
  2892.                the execution of a disk command which has the same name
  2893.                as a shell builtin without specifying a full pathname.
  2894.                If ----nnnn is used, each _n_a_m_e is disabled; otherwise, _n_a_m_e_s
  2895.                are enabled.  For example, to use the tttteeeesssstttt binary found
  2896.                via the PPPPAAAATTTTHHHH instead of the shell builtin version, type
  2897.                ``enable -n test''.  If no arguments are given, a list
  2898.  
  2899.  
  2900.  
  2901.      Page 44                                          (printed 7/6/95)
  2902.  
  2903.  
  2904.  
  2905.  
  2906.  
  2907.  
  2908.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  2909.  
  2910.  
  2911.  
  2912.                of all enabled shell builtins is printed.  If only ----nnnn
  2913.                is supplied, a list of all disabled builtins is
  2914.                printed.  If only ----aaaallllllll is supplied, the list printed
  2915.                includes all builtins, with an indication of whether or
  2916.                not each is enabled.  eeeennnnaaaabbbblllleeee accepts ----aaaa as a synonym
  2917.                for ----aaaallllllll.  The return value is 0 unless a _n_a_m_e is not a
  2918.                shell builtin.
  2919.  
  2920.           eeeevvvvaaaallll [_a_r_g ...]
  2921.                The _a_r_gs are read and concatenated together into a
  2922.                single command.  This command is then read and executed
  2923.                by the shell, and its exit status is returned as the
  2924.                value of the eeeevvvvaaaallll command.  If there are no _a_r_g_s, or
  2925.                only null arguments, eeeevvvvaaaallll returns true.
  2926.  
  2927.           eeeexxxxeeeecccc [[----] _c_o_m_m_a_n_d [_a_r_g_u_m_e_n_t_s]]
  2928.                If _c_o_m_m_a_n_d is specified, it replaces the shell.  No new
  2929.                process is created.  The _a_r_g_u_m_e_n_t_s become the arguments
  2930.                to _c_o_m_m_a_n_d.  If the first argument is ----, the shell
  2931.                places a dash in the zeroth arg passed to _c_o_m_m_a_n_d.
  2932.                This is what login does.  If the file cannot be
  2933.                executed for some reason, a non-interactive shell
  2934.                exits, unless the shell variable nnnnoooo____eeeexxxxiiiitttt____oooonnnn____ffffaaaaiiiilllleeeedddd____eeeexxxxeeeecccc
  2935.                exists, in which case it returns failure.  An
  2936.                interactive shell returns failure if the file cannot be
  2937.                executed.  If _c_o_m_m_a_n_d is not specified, any
  2938.                redirections take effect in the current shell, and the
  2939.                return status is 0.
  2940.  
  2941.           eeeexxxxiiiitttt [_n]
  2942.                Cause the shell to exit with a status of _n.  If _n is
  2943.                omitted, the exit status is that of the last command
  2944.                executed.  A trap on EEEEXXXXIIIITTTT is executed before the shell
  2945.                terminates.
  2946.  
  2947.           eeeexxxxppppoooorrrrtttt [----nnnnffff] [_n_a_m_e[=_w_o_r_d]] ...
  2948.           eeeexxxxppppoooorrrrtttt ----pppp
  2949.                The supplied _n_a_m_e_s are marked for automatic export to
  2950.                the environment of subsequently executed commands.  If
  2951.                the ----ffff option is given, the _n_a_m_e_s refer to functions.
  2952.                If no _n_a_m_e_s are given, or if the ----pppp option is supplied,
  2953.                a list of all names that are exported in this shell is
  2954.                printed.  The ----nnnn option causes the export property to
  2955.                be removed from the named variables.  An argument of --------
  2956.                disables option checking for the rest of the arguments.
  2957.                eeeexxxxppppoooorrrrtttt returns an exit status of 0 unless an illegal
  2958.                option is encountered, one of the _n_a_m_e_s is not a legal
  2959.                shell variable name, or ----ffff is supplied with a _n_a_m_e that
  2960.                is not a function.
  2961.  
  2962.           ffffcccc [----eeee _e_n_a_m_e] [----nnnnllllrrrr] [_f_i_r_s_t] [_l_a_s_t]
  2963.           ffffcccc ----ssss [_p_a_t=_r_e_p] [_c_m_d]
  2964.  
  2965.  
  2966.  
  2967.      Page 45                                          (printed 7/6/95)
  2968.  
  2969.  
  2970.  
  2971.  
  2972.  
  2973.  
  2974.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  2975.  
  2976.  
  2977.  
  2978.                Fix Command.  In the first form, a range of commands
  2979.                from _f_i_r_s_t to _l_a_s_t is selected from the history list.
  2980.                _F_i_r_s_t and _l_a_s_t may be specified as a string (to locate
  2981.                the last command beginning with that string) or as a
  2982.                number (an index into the history list, where a
  2983.                negative number is used as an offset from the current
  2984.                command number).  If _l_a_s_t is not specified it is set to
  2985.                the current command for listing (so that ffffcccc ----llll ----11110000
  2986.                prints the last 10 commands) and to _f_i_r_s_t otherwise.
  2987.                If _f_i_r_s_t is not specified it is set to the previous
  2988.                command for editing and -16 for listing.
  2989.  
  2990.                The ----nnnn flag suppresses the command numbers when
  2991.                listing.  The ----rrrr flag reverses the order of the
  2992.                commands.  If the ----llll flag is given, the commands are
  2993.                listed on standard output.  Otherwise, the editor given
  2994.                by _e_n_a_m_e is invoked on a file containing those
  2995.                commands.  If _e_n_a_m_e is not given, the value of the
  2996.                FFFFCCCCEEEEDDDDIIIITTTT variable is used, and the value of EEEEDDDDIIIITTTTOOOORRRR if
  2997.                FFFFCCCCEEEEDDDDIIIITTTT is not set.  If neither variable is set, _v_i is
  2998.                used.  When editing is complete, the edited commands
  2999.                are echoed and executed.
  3000.  
  3001.                In the second form, _c_o_m_m_a_n_d is re-executed after each
  3002.                instance of _p_a_t is replaced by _r_e_p.  A useful alias to
  3003.                use with this is ``r=fc -s'', so that typing ``r cc''
  3004.                runs the last command beginning with ``cc'' and typing
  3005.                ``r'' re-executes the last command.
  3006.  
  3007.                If the first form is used, the return value is 0 unless
  3008.                an illegal option is encountered or _f_i_r_s_t or _l_a_s_t
  3009.                specify history lines out of range.  If the ----eeee option
  3010.                is supplied, the return value is the value of the last
  3011.                command executed or failure if an error occurs with the
  3012.                temporary file of commands.  If the second form is
  3013.                used, the return status is that of the command re-
  3014.                executed, unless _c_m_d does not specify a valid history
  3015.                line, in which case ffffcccc returns failure.
  3016.  
  3017.           ffffgggg [_j_o_b_s_p_e_c]
  3018.                Place _j_o_b_s_p_e_c in the foreground, and make it the
  3019.                current job.  If _j_o_b_s_p_e_c is not present, the shell's
  3020.                notion of the _c_u_r_r_e_n_t _j_o_b is used.  The return value is
  3021.                that of the command placed into the foreground, or
  3022.                failure if run when job control is disabled or, when
  3023.                run with job control enabled, if _j_o_b_s_p_e_c does not
  3024.                specify a valid job or _j_o_b_s_p_e_c specifies a job that was
  3025.                started without job control.
  3026.  
  3027.           ggggeeeettttooooppppttttssss _o_p_t_s_t_r_i_n_g _n_a_m_e [_a_r_g_s]
  3028.                ggggeeeettttooooppppttttssss is used by shell procedures to parse positional
  3029.                parameters.  _o_p_t_s_t_r_i_n_g contains the option letters to
  3030.  
  3031.  
  3032.  
  3033.      Page 46                                          (printed 7/6/95)
  3034.  
  3035.  
  3036.  
  3037.  
  3038.  
  3039.  
  3040.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  3041.  
  3042.  
  3043.  
  3044.                be recognized; if a letter is followed by a colon, the
  3045.                option is expected to have an argument, which should be
  3046.                separated from it by white space.  Each time it is
  3047.                invoked, ggggeeeettttooooppppttttssss places the next option in the shell
  3048.                variable _n_a_m_e, initializing _n_a_m_e if it does not exist,
  3049.                and the index of the next argument to be processed into
  3050.                the variable OOOOPPPPTTTTIIIINNNNDDDD.  OOOOPPPPTTTTIIIINNNNDDDD is initialized to 1 each
  3051.                time the shell or a shell script is invoked.  When an
  3052.                option requires an argument, ggggeeeettttooooppppttttssss places that
  3053.                argument into the variable OOOOPPPPTTTTAAAARRRRGGGG.  The shell does not
  3054.                reset OOOOPPPPTTTTIIIINNNNDDDD automatically; it must be manually reset
  3055.                between multiple calls to ggggeeeettttooooppppttttssss within the same shell
  3056.                invocation if a new set of parameters is to be used.
  3057.  
  3058.                ggggeeeettttooooppppttttssss can report errors in two ways.  If the first
  3059.                character of _o_p_t_s_t_r_i_n_g is a colon, _s_i_l_e_n_t error
  3060.                reporting is used.  In normal operation diagnostic
  3061.                messages are printed when illegal options or missing
  3062.                option arguments are encountered.  If the variable
  3063.                OOOOPPPPTTTTEEEERRRRRRRR is set to 0, no error message will be displayed,
  3064.                even if the first character of _o_p_t_s_t_r_i_n_g is not a
  3065.                colon.
  3066.  
  3067.                If an illegal option is seen, ggggeeeettttooooppppttttssss places ? into
  3068.                _n_a_m_e and, if not silent, prints an error message and
  3069.                unsets OOOOPPPPTTTTAAAARRRRGGGG.  If ggggeeeettttooooppppttttssss is silent, the option
  3070.                character found is placed in OOOOPPPPTTTTAAAARRRRGGGG and no diagnostic
  3071.                message is printed.
  3072.  
  3073.                If a required argument is not found, and ggggeeeettttooooppppttttssss is not
  3074.                silent, a question mark (????) is placed in _n_a_m_e, OOOOPPPPTTTTAAAARRRRGGGG
  3075.                is unset, and a diagnostic message is printed.  If
  3076.                ggggeeeettttooooppppttttssss is silent, then a colon (::::) is placed in _n_a_m_e
  3077.                and OOOOPPPPTTTTAAAARRRRGGGG is set to the option character found.
  3078.  
  3079.                ggggeeeettttooooppppttttssss normally parses the positional parameters, but
  3080.                if more arguments are given in _a_r_g_s, ggggeeeettttooooppppttttssss parses
  3081.                those instead.  ggggeeeettttooooppppttttssss returns true if an option,
  3082.                specified or unspecified, is found.  It returns false
  3083.                if the end of options is encountered or an error
  3084.                occurs.
  3085.  
  3086.           hhhhaaaasssshhhh [----rrrr] [_n_a_m_e]
  3087.                For each _n_a_m_e, the full pathname of the command is
  3088.                determined and remembered.  The ----rrrr option causes the
  3089.                shell to forget all remembered locations.  If no
  3090.                arguments are given, information about remembered
  3091.                commands is printed.  An argument of -------- disables option
  3092.                checking for the rest of the arguments.  The return
  3093.                status is true unless a _n_a_m_e is not found or an illegal
  3094.                option is supplied.
  3095.  
  3096.  
  3097.  
  3098.  
  3099.      Page 47                                          (printed 7/6/95)
  3100.  
  3101.  
  3102.  
  3103.  
  3104.  
  3105.  
  3106.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  3107.  
  3108.  
  3109.  
  3110.           hhhheeeellllpppp [_p_a_t_t_e_r_n]
  3111.                Display helpful information about builtin commands.  If
  3112.                _p_a_t_t_e_r_n is specified, hhhheeeellllpppp gives detailed help on all
  3113.                commands matching _p_a_t_t_e_r_n; otherwise a list of the
  3114.                builtins is printed.  The return status is 0 unless no
  3115.                command matches _p_a_t_t_e_r_n.
  3116.  
  3117.           hhhhiiiissssttttoooorrrryyyy [_n]
  3118.           hhhhiiiissssttttoooorrrryyyy ----rrrrwwwwaaaannnn [_f_i_l_e_n_a_m_e]
  3119.                With no options, display the command history list with
  3120.                line numbers.  Lines listed with a **** have been
  3121.                modified.  An argument of _n lists only the last _n
  3122.                lines.  If a non-option argument is supplied, it is
  3123.                used as the name of the history file; if not, the value
  3124.                of HHHHIIIISSSSTTTTFFFFIIIILLLLEEEE is used.  Options, if supplied, have the
  3125.                following meanings:
  3126.                ----aaaa   Append the ``new'' history lines (history lines
  3127.                     entered since the beginning of the current bbbbaaaasssshhhh
  3128.                     session) to the history file
  3129.                ----nnnn   Read the history lines not already read from the
  3130.                     history file into the current history list.  These
  3131.                     are lines appended to the history file since the
  3132.                     beginning of the current bbbbaaaasssshhhh session.
  3133.                ----rrrr   Read the contents of the history file and use them
  3134.                     as the current history
  3135.                ----wwww   Write the current history to the history file,
  3136.                     overwriting the history file's contents.
  3137.  
  3138.                The return value is 0 unless an illegal option is
  3139.                encountered or an error occurs while reading or writing
  3140.                the history file.
  3141.  
  3142.           jjjjoooobbbbssss [----llllnnnnpppp] [ _j_o_b_s_p_e_c ... ]
  3143.           jjjjoooobbbbssss ----xxxx _c_o_m_m_a_n_d [ _a_r_g_s ... ]
  3144.                The first form lists the active jobs.  The ----llll option
  3145.                lists process IDs in addition to the normal
  3146.                information; the ----pppp option lists only the process ID of
  3147.                the job's process group leader.  The ----nnnn option displays
  3148.                only jobs that have changed status since last notified.
  3149.                If _j_o_b_s_p_e_c is given, output is restricted to
  3150.                information about that job.  The return status is 0
  3151.                unless an illegal option is encountered or an illegal
  3152.                _j_o_b_s_p_e_c is supplied.
  3153.  
  3154.                If the ----xxxx option is supplied, jjjjoooobbbbssss replaces any _j_o_b_s_p_e_c
  3155.                found in _c_o_m_m_a_n_d or _a_r_g_s with the corresponding process
  3156.                group ID, and executes _c_o_m_m_a_n_d passing it _a_r_g_s,
  3157.                returning its exit status.
  3158.  
  3159.           kkkkiiiillllllll [----ssss ssssiiiiggggssssppppeeeecccc | ----ssssiiiiggggssssppppeeeecccc] [_p_i_d | _j_o_b_s_p_e_c] ...
  3160.           kkkkiiiillllllll ----llll [_s_i_g_n_u_m]
  3161.                Send the signal named by _s_i_g_s_p_e_c to the processes named
  3162.  
  3163.  
  3164.  
  3165.      Page 48                                          (printed 7/6/95)
  3166.  
  3167.  
  3168.  
  3169.  
  3170.  
  3171.  
  3172.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  3173.  
  3174.  
  3175.  
  3176.                by _p_i_d or _j_o_b_s_p_e_c.  _s_i_g_s_p_e_c is either a signal name
  3177.                such as SSSSIIIIGGGGKKKKIIIILLLLLLLL or a signal number.  If _s_i_g_s_p_e_c is a
  3178.                signal name, the name is case insensitive and may be
  3179.                given with or without the SSSSIIIIGGGG prefix.  If _s_i_g_s_p_e_c is
  3180.                not present, then SSSSIIIIGGGGTTTTEEEERRRRMMMM is assumed.  An argument of
  3181.                ----llll lists the signal names.  If any arguments are
  3182.                supplied when ----llll is given, the names of the specified
  3183.                signals are listed, and the return status is 0.  An
  3184.                argument of -------- disables option checking for the rest of
  3185.                the arguments.  kkkkiiiillllllll returns true if at least one
  3186.                signal was successfully sent, or false if an error
  3187.                occurs or an illegal option is encountered.
  3188.  
  3189.           lllleeeetttt _a_r_g [_a_r_g ...]
  3190.                Each _a_r_g is an arithmetic expression to be evaluated
  3191.                (see AAAARRRRIIIITTTTHHHHMMMMEEEETTTTIIIICCCC EEEEVVVVAAAALLLLUUUUAAAATTTTIIIIOOOONNNN).  If the last _a_r_g evaluates
  3192.                to 0, lllleeeetttt returns 1; 0 is returned otherwise.
  3193.  
  3194.           llllooooccccaaaallll [_n_a_m_e[=_v_a_l_u_e] ...]
  3195.                For each argument, create a local variable named _n_a_m_e,
  3196.                and assign it _v_a_l_u_e.  When llllooooccccaaaallll is used within a
  3197.                function, it causes the variable _n_a_m_e to have a visible
  3198.                scope restricted to that function and its children.
  3199.                With no operands, llllooooccccaaaallll writes a list of local
  3200.                variables to the standard output.  It is an error to
  3201.                use llllooooccccaaaallll when not within a function.  The return
  3202.                status is 0 unless llllooooccccaaaallll is used outside a function, or
  3203.                an illegal _n_a_m_e is supplied.
  3204.  
  3205.           llllooooggggoooouuuutttt
  3206.                Exit a login shell.
  3207.  
  3208.           ppppooooppppdddd [++++////----nnnn]
  3209.                Removes entries from the directory stack.  With no
  3210.                arguments, removes the top directory from the stack,
  3211.                and performs a ccccdddd to the new top directory.
  3212.                ++++nnnn   removes the _nth entry counting from the left of
  3213.                     the list shown by ddddiiiirrrrssss, starting with zero.  For
  3214.                     example: ``popd +0'' removes the first directory,
  3215.                     ``popd +1'' the second.
  3216.                ----nnnn   removes the _nth entry counting from the right of
  3217.                     the list shown by ddddiiiirrrrssss, starting with zero.  For
  3218.                     example: ``popd -0'' removes the last directory,
  3219.                     ``popd -1'' the next to last.
  3220.  
  3221.                If the ppppooooppppdddd command is successful, a ddddiiiirrrrssss is performed
  3222.                as well, and the return status is 0.  ppppooooppppdddd returns
  3223.                false if an illegal option is encountered, the
  3224.                directory stack is empty, a non-existent directory
  3225.                stack entry is specified, or the directory change
  3226.                fails.
  3227.  
  3228.  
  3229.  
  3230.  
  3231.      Page 49                                          (printed 7/6/95)
  3232.  
  3233.  
  3234.  
  3235.  
  3236.  
  3237.  
  3238.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  3239.  
  3240.  
  3241.  
  3242.           ppppuuuusssshhhhdddd [_d_i_r]
  3243.           ppppuuuusssshhhhdddd ++++////----nnnn
  3244.                Adds a directory to the top of the directory stack, or
  3245.                rotates the stack, making the new top of the stack the
  3246.                current working directory.  With no arguments,
  3247.                exchanges the top two directories and returns 0, unless
  3248.                the directory stack is empty.
  3249.                ++++nnnn   Rotates the stack so that the _nth directory
  3250.                     (counting from the left of the list shown by ddddiiiirrrrssss)
  3251.                     is at the top.
  3252.                ----nnnn   Rotates the stack so that the _nth directory
  3253.                     (counting from the right) is at the top.
  3254.                ddddiiiirrrr  adds _d_i_r to the directory stack at the top, making
  3255.                     it the new current working directory.
  3256.  
  3257.                If the ppppuuuusssshhhhdddd command is successful, a ddddiiiirrrrssss is performed
  3258.                as well.  If the first form is used, ppppuuuusssshhhhdddd returns 0
  3259.                unless the cd to _d_i_r fails.  With the second form,
  3260.                ppppuuuusssshhhhdddd returns 0 unless the directory stack is empty, a
  3261.                non-existant directory stack element is specified, or
  3262.                the directory change to the specified new current
  3263.                directory fails.
  3264.  
  3265.           ppppwwwwdddd  Print the absolute pathname of the current working
  3266.                directory.  The path printed contains no symbolic links
  3267.                if the ----PPPP option to the sssseeeetttt builtin command is set.
  3268.                See also the description of nnnnoooolllliiiinnnnkkkkssss under SSSShhhheeeellllllll
  3269.                VVVVaaaarrrriiiiaaaabbbblllleeeessss above).  The return status is 0 unless an
  3270.                error occurs while reading the pathname of the current
  3271.                directory.
  3272.  
  3273.           rrrreeeeaaaadddd [----rrrr] [_n_a_m_e ...]
  3274.                One line is read from the standard input, and the first
  3275.                word is assigned to the first _n_a_m_e, the second word to
  3276.                the second _n_a_m_e, and so on, with leftover words
  3277.                assigned to the last _n_a_m_e.  Only the characters in IIIIFFFFSSSS
  3278.                are recognized as word delimiters.  If no _n_a_m_e_s are
  3279.                supplied, the line read is assigned to the variable
  3280.                RRRREEEEPPPPLLLLYYYY.  The return code is zero, unless end-of-file is
  3281.                encountered.  If the ----rrrr option is given, a backslash-
  3282.                newline pair is not ignored, and the backslash is
  3283.                considered to be part of the line.
  3284.  
  3285.           rrrreeeeaaaaddddoooonnnnllllyyyy [----ffff] [_n_a_m_e ...]
  3286.           rrrreeeeaaaaddddoooonnnnllllyyyy ----pppp
  3287.                The given _n_a_m_e_s are marked readonly and the values of
  3288.                these _n_a_m_e_s may not be changed by subsequent
  3289.                assignment.  If the ----ffff option is supplied, the
  3290.                functions corresponding to the _n_a_m_e_s are so marked.  If
  3291.                no arguments are given, or if the ----pppp option is
  3292.                supplied, a list of all readonly names is printed.  An
  3293.                argument of -------- disables option checking for the rest of
  3294.  
  3295.  
  3296.  
  3297.      Page 50                                          (printed 7/6/95)
  3298.  
  3299.  
  3300.  
  3301.  
  3302.  
  3303.  
  3304.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  3305.  
  3306.  
  3307.  
  3308.                the arguments.  The return status is 0 unless an
  3309.                illegal option is encountered, one of the _n_a_m_e_s is not
  3310.                a legal shell variable name, or ----ffff is supplied with a
  3311.                _n_a_m_e that is not a function.
  3312.  
  3313.           rrrreeeettttuuuurrrrnnnn [_n]
  3314.                Causes a function to exit with the return value
  3315.                specified by _n.  If _n is omitted, the return status is
  3316.                that of the last command executed in the function body.
  3317.                If used outside a function, but during execution of a
  3318.                script by the .... (ssssoooouuuurrrrcccceeee) command, it causes the shell
  3319.                to stop executing that script and return either _n or
  3320.                the exit status of the last command executed within the
  3321.                script as the exit status of the script.  If used
  3322.                outside a function and not during execution of a script
  3323.                by ...., the return status is false.
  3324.  
  3325.           sssseeeetttt [--------aaaabbbbeeeeffffhhhhkkkkmmmmnnnnppppttttuuuuvvvvxxxxllllddddCCCCHHHHPPPP] [----oooo _o_p_t_i_o_n] [_a_r_g ...]
  3326.                ----aaaa      Automatically mark variables which are modified
  3327.                        or created for export to the environment of
  3328.                        subsequent commands.
  3329.                ----bbbb      Cause the status of terminated background jobs
  3330.                        to be reported immediately, rather than before
  3331.                        the next primary prompt.  (Also see nnnnoooottttiiiiffffyyyy
  3332.                        under SSSShhhheeeellllllll VVVVaaaarrrriiiiaaaabbbblllleeeessss above).
  3333.                ----eeee      Exit immediately if a _s_i_m_p_l_e-_c_o_m_m_a_n_d (see SSSSHHHHEEEELLLLLLLL
  3334.                        GGGGRRRRAAAAMMMMMMMMAAAARRRR above) exits with a non-zero status.
  3335.                        The shell does not exit if the command that
  3336.                        fails is part of an _u_n_t_i_l or _w_h_i_l_e loop, part
  3337.                        of an _i_f statement, part of a &&&&&&&& or |||||||| list, or
  3338.                        if the command's return value is being inverted
  3339.                        via !!!!.
  3340.                ----ffff      Disable pathname expansion.
  3341.                ----hhhh      Locate and remember function commands as
  3342.                        functions are defined.  Function commands are
  3343.                        normally looked up when the function is
  3344.                        executed.
  3345.                ----kkkk      All keyword arguments are placed in the
  3346.                        environment for a command, not just those that
  3347.                        precede the command name.
  3348.                ----mmmm      Monitor mode.  Job control is enabled.  This
  3349.                        flag is on by default for interactive shells on
  3350.                        systems that support it (see JJJJOOOOBBBB CCCCOOOONNNNTTTTRRRROOOOLLLL
  3351.                        above).  Background processes run in a separate
  3352.                        process group and a line containing their exit
  3353.                        status is printed upon their completion.
  3354.                ----nnnn      Read commands but do not execute them.  This
  3355.                        may be used to check a shell script for syntax
  3356.                        errors.  This is ignored for interactive
  3357.                        shells.
  3358.                ----oooo _o_p_t_i_o_n-_n_a_m_e
  3359.                        The _o_p_t_i_o_n-_n_a_m_e can be one of the following:
  3360.  
  3361.  
  3362.  
  3363.      Page 51                                          (printed 7/6/95)
  3364.  
  3365.  
  3366.  
  3367.  
  3368.  
  3369.  
  3370.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  3371.  
  3372.  
  3373.  
  3374.                        aaaalllllllleeeexxxxppppoooorrrrtttt
  3375.                                Same as ----aaaa.
  3376.                        bbbbrrrraaaacccceeeeeeeexxxxppppaaaannnndddd
  3377.                                The shell performs brace expansion (see
  3378.                                BBBBrrrraaaacccceeee EEEExxxxppppaaaannnnssssiiiioooonnnn above).  This is on by
  3379.                                default.
  3380.                        eeeemmmmaaaaccccssss   Use an emacs-style command line editing
  3381.                                interface.  This is enabled by default
  3382.                                when the shell is interactive, unless
  3383.                                the shell is started with the
  3384.                                ----nnnnoooolllliiiinnnneeeeeeeeddddiiiittttiiiinnnngggg option.
  3385.                        eeeerrrrrrrreeeexxxxiiiitttt Same as ----eeee.
  3386.                        hhhhiiiisssstttteeeexxxxppppaaaannnndddd
  3387.                                Same as ----HHHH.
  3388.                        iiiiggggnnnnoooorrrreeeeeeeeooooffff
  3389.                                The effect is as if the shell command
  3390.                                `IGNOREEOF=10' had been executed (see
  3391.                                SSSShhhheeeellllllll VVVVaaaarrrriiiiaaaabbbblllleeeessss above).
  3392.                        iiiinnnntttteeeerrrraaaaccccttttiiiivvvveeee----ccccoooommmmmmmmeeeennnnttttssss
  3393.                                Allow a word beginning with #### to cause
  3394.                                that word and all remaining characters
  3395.                                on that line to be ignored in an
  3396.                                interactive shell (see CCCCOOOOMMMMMMMMEEEENNNNTTTTSSSS above).
  3397.                        mmmmoooonnnniiiittttoooorrrr Same as ----mmmm.
  3398.                        nnnnoooocccclllloooobbbbbbbbeeeerrrr
  3399.                                Same as ----CCCC.
  3400.                        nnnnooooeeeexxxxeeeecccc  Same as ----nnnn.
  3401.                        nnnnoooogggglllloooobbbb  Same as ----ffff.
  3402.                        nnnnoooohhhhaaaasssshhhh  Same as ----dddd.
  3403.                        nnnnoooottttiiiiffffyyyy  Same as ----bbbb.
  3404.                        nnnnoooouuuunnnnsssseeeetttt Same as ----uuuu.
  3405.                        pppphhhhyyyyssssiiiiccccaaaallll
  3406.                                Same as ----PPPP.
  3407.                        ppppoooossssiiiixxxx   Change the behavior of bash where the
  3408.                                default operation differs from the
  3409.                                Posix 1003.2 standard to match the
  3410.                                standard.
  3411.                        pppprrrriiiivvvviiiilllleeeeggggeeeedddd
  3412.                                Same as ----pppp.
  3413.                        vvvveeeerrrrbbbboooosssseeee Same as ----vvvv.
  3414.                        vvvviiii      Use a vi-style command line editing
  3415.                                interface.
  3416.                        xxxxttttrrrraaaacccceeee  Same as ----xxxx.
  3417.                        If no _o_p_t_i_o_n-_n_a_m_e is supplied, the values of
  3418.                        the current options are printed.
  3419.                ----pppp      Turn on _p_r_i_v_i_l_e_g_e_d mode.  In this mode, the
  3420.                        $$$$EEEENNNNVVVV file is not processed, and shell functions
  3421.                        are not inherited from the environment.  This
  3422.                        is enabled automatically on startup if the
  3423.                        effective user (group) id is not equal to the
  3424.                        real user (group) id.  Turning this option off
  3425.                        causes the effective user and group ids to be
  3426.  
  3427.  
  3428.  
  3429.      Page 52                                          (printed 7/6/95)
  3430.  
  3431.  
  3432.  
  3433.  
  3434.  
  3435.  
  3436.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  3437.  
  3438.  
  3439.  
  3440.                        set to the real user and group ids.
  3441.                ----tttt      Exit after reading and executing one command.
  3442.                ----uuuu      Treat unset variables as an error when
  3443.                        performing parameter expansion.  If expansion
  3444.                        is attempted on an unset variable, the shell
  3445.                        prints an error message, and, if not
  3446.                        interactive, exits with a non-zero status.
  3447.                ----vvvv      Print shell input lines as they are read.
  3448.                ----xxxx      After expanding each _s_i_m_p_l_e-_c_o_m_m_a_n_d, bbbbaaaasssshhhh
  3449.                        displays the expanded value of PPPPSSSS4444, followed by
  3450.                        the command and its expanded arguments.
  3451.                ----llll      Save and restore the binding of _n_a_m_e in a ffffoooorrrr
  3452.                        _n_a_m_e [in wwwwoooorrrrdddd] command (see SSSSHHHHEEEELLLLLLLL GGGGRRRRAAAAMMMMMMMMAAAARRRR
  3453.                        above).
  3454.                ----dddd      Disable the hashing of commands that are looked
  3455.                        up for execution.  Normally, commands are
  3456.                        remembered in a hash table, and once found, do
  3457.                        not have to be looked up again.
  3458.                ----CCCC      The effect is as if the shell command
  3459.                        `noclobber=' had been executed (see SSSShhhheeeellllllll
  3460.                        VVVVaaaarrrriiiiaaaabbbblllleeeessss above).
  3461.                ----HHHH      Enable !!!! style history substitution.  This flag
  3462.                        is on by default when the shell is interactive.
  3463.                ----PPPP      If set, do not follow symbolic links when
  3464.                        performing commands such as ccccdddd which change the
  3465.                        current directory.  The physical directory is
  3466.                        used instead.
  3467.                --------      If no arguments follow this flag, then the
  3468.                        positional parameters are unset.  Otherwise,
  3469.                        the positional parameters are set to the _a_r_gs,
  3470.                        even if some of them begin with a ----.
  3471.                ----       Signal the end of options, cause all remaining
  3472.                        _a_r_gs to be assigned to the positional
  3473.                        parameters.  The ----xxxx and ----vvvv options are turned
  3474.                        off.  If there are no _a_r_gs, the positional
  3475.                        parameters remain unchanged.
  3476.  
  3477.                The flags are off by default unless otherwise noted.
  3478.                Using + rather than - causes these flags to be turned
  3479.                off.  The flags can also be specified as options to an
  3480.                invocation of the shell.  The current set of flags may
  3481.                be found in $$$$----.  After the option arguments are
  3482.                processed, the remaining _n _a_r_gs are treated as values
  3483.                for the positional parameters and are assigned, in
  3484.                order, to $$$$1111, $$$$2222, ............ $$$$_n.  If no options or _a_r_gs are
  3485.                supplied, all shell variables are printed.  The return
  3486.                status is always true unless an illegal option is
  3487.                encountered.
  3488.  
  3489.           sssshhhhiiiifffftttt [_n]
  3490.                The positional parameters from _n+1 ... are renamed to
  3491.                $$$$1111 ................ Parameters represented by the numbers $$$$#### down
  3492.  
  3493.  
  3494.  
  3495.      Page 53                                          (printed 7/6/95)
  3496.  
  3497.  
  3498.  
  3499.  
  3500.  
  3501.  
  3502.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  3503.  
  3504.  
  3505.  
  3506.                to $$$$####-_n+1 are unset.  If _n is 0, no parameters are
  3507.                changed.  If _n is not given, it is assumed to be 1.  _n
  3508.                must be a non-negative number less than or equal to $$$$####.
  3509.                If _n is greater than $$$$####, the positional parameters are
  3510.                not changed.  The return status is greater than 0 if _n
  3511.                is greater than $$$$#### or less than 0; otherwise 0.
  3512.  
  3513.           ssssuuuussssppppeeeennnndddd [----ffff]
  3514.                Suspend the execution of this shell until it receives a
  3515.                SSSSIIIIGGGGCCCCOOOONNNNTTTT signal.  The ----ffff option says not to complain if
  3516.                this is a login shell; just suspend anyway.  The return
  3517.                status is 0 unless the shell is a login shell and ----ffff is
  3518.                not supplied, or if job control is not enabled.
  3519.  
  3520.           tttteeeesssstttt _e_x_p_r
  3521.           [[[[ _e_x_p_r ]]]]
  3522.                Return a status of 0 (true) or 1 (false) depending on
  3523.                the evaluation of the conditional expression _e_x_p_r.
  3524.                Expressions may be unary or binary.  Unary expressions
  3525.                are often used to examine the status of a file.  There
  3526.                are string operators and numeric comparison operators
  3527.                as well.  Each operator and operand must be a separate
  3528.                argument.  If _f_i_l_e is of the form /dev/fd/_n, then file
  3529.                descriptor _n is checked.
  3530.                ----bbbb _f_i_l_e
  3531.                     True if _f_i_l_e exists and is block special.
  3532.                ----cccc _f_i_l_e
  3533.                     True if _f_i_l_e exists and is character special.
  3534.                ----dddd _f_i_l_e
  3535.                     True if _f_i_l_e exists and is a directory.
  3536.                ----eeee _f_i_l_e
  3537.                     True if _f_i_l_e exists.
  3538.                ----ffff _f_i_l_e
  3539.                     True if _f_i_l_e exists and is a regular file.
  3540.                ----gggg _f_i_l_e
  3541.                     True if _f_i_l_e exists and is set-group-id.
  3542.                ----kkkk _f_i_l_e
  3543.                     True if _f_i_l_e has its ``sticky'' bit set.
  3544.                ----LLLL _f_i_l_e
  3545.                     True if _f_i_l_e exists and is a symbolic link.
  3546.                ----pppp _f_i_l_e
  3547.                     True if _f_i_l_e exists and is a named pipe.
  3548.                ----rrrr _f_i_l_e
  3549.                     True if _f_i_l_e exists and is readable.
  3550.                ----ssss _f_i_l_e
  3551.                     True if _f_i_l_e exists and has a size greater than
  3552.                     zero.
  3553.                ----SSSS _f_i_l_e
  3554.                     True if _f_i_l_e exists and is a socket.
  3555.                ----tttt _f_d
  3556.                     True if _f_d is opened on a terminal.
  3557.                ----uuuu _f_i_l_e
  3558.  
  3559.  
  3560.  
  3561.      Page 54                                          (printed 7/6/95)
  3562.  
  3563.  
  3564.  
  3565.  
  3566.  
  3567.  
  3568.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  3569.  
  3570.  
  3571.  
  3572.                     True if _f_i_l_e exists and its set-user-id bit is
  3573.                     set.
  3574.                ----wwww _f_i_l_e
  3575.                     True if _f_i_l_e exists and is writable.
  3576.                ----xxxx _f_i_l_e
  3577.                     True if _f_i_l_e exists and is executable.
  3578.                ----OOOO _f_i_l_e
  3579.                     True if _f_i_l_e exists and is owned by the effective
  3580.                     user id.
  3581.                ----GGGG _f_i_l_e
  3582.                     True if _f_i_l_e exists and is owned by the effective
  3583.                     group id.
  3584.                _f_i_l_e_1 -nnnntttt _f_i_l_e_2
  3585.                     True if _f_i_l_e_1 is newer (according to modification
  3586.                     date) than _f_i_l_e_2.
  3587.                _f_i_l_e_1 -ooootttt _f_i_l_e_2
  3588.                     True if _f_i_l_e_1 is older than file2.
  3589.                _f_i_l_e_1 ----eeeeffff _f_i_l_e
  3590.                     True if _f_i_l_e_1 and _f_i_l_e_2 have the same device and
  3591.                     inode numbers.
  3592.                ----zzzz _s_t_r_i_n_g
  3593.                     True if the length of _s_t_r_i_n_g is zero.
  3594.                ----nnnn _s_t_r_i_n_g
  3595.                _s_t_r_i_n_g
  3596.                     True if the length of _s_t_r_i_n_g is non-zero.
  3597.                _s_t_r_i_n_g_1 ==== _s_t_r_i_n_g_2
  3598.                     True if the strings are equal.
  3599.                _s_t_r_i_n_g_1 !!!!==== _s_t_r_i_n_g_2
  3600.                     True if the strings are not equal.
  3601.                !!!! _e_x_p_r
  3602.                     True if _e_x_p_r is false.
  3603.                _e_x_p_r_1 -aaaa _e_x_p_r_2
  3604.                     True if both _e_x_p_r_1 AND _e_x_p_r_2 are true.
  3605.                _e_x_p_r_1 -oooo _e_x_p_r_2
  3606.                     True if either _e_x_p_r_1 OR _e_x_p_r_2 is true.
  3607.                _a_r_g_1 OOOOPPPP _a_r_g_2
  3608.                     OOOOPPPP is one of ----eeeeqqqq, ----nnnneeee, ----lllltttt, ----lllleeee, ----ggggtttt, or ----ggggeeee.
  3609.                     These arithmetic binary operators return true if
  3610.                     _a_r_g_1 is equal, not-equal, less-than, less-than-
  3611.                     or-equal, greater-than, or greater-than-or-equal
  3612.                     than _a_r_g_2, respectively.  _A_r_g_1 and _a_r_g_2 may be
  3613.                     positive integers, negative integers, or the
  3614.                     special expression ----llll _s_t_r_i_n_g, which evaluates to
  3615.                     the length of _s_t_r_i_n_g.
  3616.  
  3617.           ttttiiiimmmmeeeessss
  3618.                Print the accumulated user and system times for the
  3619.                shell and for processes run from the shell.  The return
  3620.                status is 0.
  3621.  
  3622.           ttttrrrraaaapppp [----llll] [_a_r_g] [_s_i_g_s_p_e_c]
  3623.                The command _a_r_g is to be read and executed when the
  3624.  
  3625.  
  3626.  
  3627.      Page 55                                          (printed 7/6/95)
  3628.  
  3629.  
  3630.  
  3631.  
  3632.  
  3633.  
  3634.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  3635.  
  3636.  
  3637.  
  3638.                shell receives signal(s) _s_i_g_s_p_e_c.  If _a_r_g is absent or
  3639.                ----, all specified signals are reset to their original
  3640.                values (the values they had upon entrance to the
  3641.                shell).  If _a_r_g is the null string this signal is
  3642.                ignored by the shell and by the commands it invokes.
  3643.                _s_i_g_s_p_e_c is either a signal name defined in <_s_i_g_n_a_l._h>,
  3644.                or a signal number. If _s_i_g_s_p_e_c is EEEEXXXXIIIITTTT (0) the command
  3645.                _a_r_g is executed on exit from the shell.  With no
  3646.                arguments, ttttrrrraaaapppp prints the list of commands associated
  3647.                with each signal number.  The ----llll option causes the
  3648.                shell to print a list of signal names and their
  3649.                corresponding numbers.  An argument of -------- disables
  3650.                option checking for the rest of the arguments.  Signals
  3651.                ignored upon entry to the shell cannot be trapped or
  3652.                reset.  Trapped signals are reset to their original
  3653.                values in a child process when it is created.  The
  3654.                return status is false if either the trap name or
  3655.                number is invalid; otherwise ttttrrrraaaapppp returns true.
  3656.  
  3657.           ttttyyyyppppeeee [----aaaallllllll] [----ttttyyyyppppeeee | ----ppppaaaatttthhhh] _n_a_m_e [_n_a_m_e ...]
  3658.                With no options, indicate how each _n_a_m_e would be
  3659.                interpreted if used as a command name.  If the ----ttttyyyyppppeeee
  3660.                flag is used, ttttyyyyppppeeee prints a phrase which is one of
  3661.                _a_l_i_a_s, _k_e_y_w_o_r_d, _f_u_n_c_t_i_o_n, _b_u_i_l_t_i_n, or _f_i_l_e if _n_a_m_e is
  3662.                an alias, shell reserved word, function, builtin, or
  3663.                disk file, respectively. If the name is not found, then
  3664.                nothing is printed, and an exit status of false is
  3665.                returned.  If the ----ppppaaaatttthhhh flag is used, ttttyyyyppppeeee either
  3666.                returns the name of the disk file that would be
  3667.                executed if _n_a_m_e were specified as a command name, or
  3668.                nothing if ----ttttyyyyppppeeee would not return _f_i_l_e.  If a command
  3669.                is hashed, ----ppppaaaatttthhhh prints the hashed value, not
  3670.                necessarily the file that appears first in PPPPAAAATTTTHHHH.  If
  3671.                the ----aaaallllllll flag is used, ttttyyyyppppeeee prints all of the places
  3672.                that contain an executable named _n_a_m_e.  This includes
  3673.                aliases and functions, if and only if the ----ppppaaaatttthhhh flag is
  3674.                not also used.  The table of hashed commands is not
  3675.                consulted when using ----aaaallllllll.  ttttyyyyppppeeee accepts ----aaaa, ----tttt, and ----pppp
  3676.                in place of ----aaaallllllll, ----ttttyyyyppppeeee, and ----ppppaaaatttthhhh, respectively.  An
  3677.                argument of -------- disables option checking for the rest of
  3678.                the arguments.  ttttyyyyppppeeee returns true if any of the
  3679.                arguments are found, false if none are found.
  3680.  
  3681.           uuuulllliiiimmmmiiiitttt [----SSSSHHHHaaaaccccddddffffmmmmssssttttppppnnnnuuuuvvvv [_l_i_m_i_t]]
  3682.                UUUUlllliiiimmmmiiiitttt provides control over the resources available to
  3683.                the shell and to processes started by it, on systems
  3684.                that allow such control.  The value of _l_i_m_i_t can be a
  3685.                number in the unit specified for the resource, or the
  3686.                value uuuunnnnlllliiiimmmmiiiitttteeeedddd.  The HHHH and SSSS options specify that the
  3687.                hard or soft limit is set for the given resource.  A
  3688.                hard limit cannot be increased once it is set; a soft
  3689.                limit may be increased up to the value of the hard
  3690.  
  3691.  
  3692.  
  3693.      Page 56                                          (printed 7/6/95)
  3694.  
  3695.  
  3696.  
  3697.  
  3698.  
  3699.  
  3700.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  3701.  
  3702.  
  3703.  
  3704.                limit.  If neither HHHH nor SSSS is specified, the command
  3705.                applies to the soft limit.  If _l_i_m_i_t is omitted, the
  3706.                current value of the soft limit of the resource is
  3707.                printed, unless the HHHH option is given.  When more than
  3708.                one resource is specified, the limit name and unit is
  3709.                printed before the value.  Other options are
  3710.                interpreted as follows:
  3711.                ----aaaa   all current limits are reported
  3712.                ----cccc   the maximum size of core files created
  3713.                ----dddd   the maximum size of a process's data segment
  3714.                ----ffff   the maximum size of files created by the shell
  3715.                ----mmmm   the maximum resident set size
  3716.                ----ssss   the maximum stack size
  3717.                ----tttt   the maximum amount of cpu time in seconds
  3718.                ----pppp   the pipe size in 512-byte blocks (this may not be
  3719.                     set)
  3720.                ----nnnn   the maximum number of open file descriptors (most
  3721.                     systems do not allow this value to be set, only
  3722.                     displayed)
  3723.                ----uuuu   the maximum number of processes available to a
  3724.                     single user
  3725.                ----vvvv   The maximum amount of virtual memory available to
  3726.                     the shell
  3727.  
  3728.                An argument of -------- disables option checking for the rest
  3729.                of the arguments.  If _l_i_m_i_t is given, it is the new
  3730.                value of the specified resource (the ----aaaa option is
  3731.                display only).  If no option is given, then ----ffff is
  3732.                assumed.  Values are in 1024-byte increments, except
  3733.                for ----tttt, which is in seconds, ----pppp, which is in units of
  3734.                512-byte blocks, and ----nnnn and ----uuuu, which are unscaled
  3735.                values.  The return status is 0 unless an illegal
  3736.                option is encountered, a non-numeric argument other
  3737.                than uuuunnnnlllliiiimmmmiiiitttteeeedddd is supplied as _l_i_m_i_t, or an error occurs
  3738.                while setting a new limit.
  3739.  
  3740.           uuuummmmaaaasssskkkk [----SSSS] [_m_o_d_e]
  3741.                The user file-creation mask is set to _m_o_d_e.  If _m_o_d_e
  3742.                begins with a digit, it is interpreted as an octal
  3743.                number; otherwise it is interpreted as a symbolic mode
  3744.                mask similar to that accepted by _c_h_m_o_d(1).  If _m_o_d_e is
  3745.                omitted, or if the ----SSSS option is supplied, the current
  3746.                value of the mask is printed.  The ----SSSS option causes the
  3747.                mask to be printed in symbolic form; the default output
  3748.                is an octal number.  An argument of -------- disables option
  3749.                checking for the rest of the arguments.  The return
  3750.                status is 0 if the mode was successfully changed or if
  3751.                no _m_o_d_e argument was supplied, and false otherwise.
  3752.  
  3753.           uuuunnnnaaaalllliiiiaaaassss [-aaaa] [_n_a_m_e ...]
  3754.                Remove _n_a_m_es from the list of defined aliases.  If ----aaaa
  3755.                is supplied, all alias definitions are removed.  The
  3756.  
  3757.  
  3758.  
  3759.      Page 57                                          (printed 7/6/95)
  3760.  
  3761.  
  3762.  
  3763.  
  3764.  
  3765.  
  3766.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  3767.  
  3768.  
  3769.  
  3770.                return value is true unless a supplied _n_a_m_e is not a
  3771.                defined alias.
  3772.  
  3773.           uuuunnnnsssseeeetttt [-ffffvvvv] [_n_a_m_e ...]
  3774.                For each _n_a_m_e, remove the corresponding variable or,
  3775.                given the ----ffff option, function.  An argument of --------
  3776.                disables option checking for the rest of the arguments.
  3777.                Note that PPPPAAAATTTTHHHH, IIIIFFFFSSSS, PPPPPPPPIIIIDDDD, PPPPSSSS1111, PPPPSSSS2222, UUUUIIIIDDDD, and EEEEUUUUIIIIDDDD
  3778.                cannot be unset.  If any of RRRRAAAANNNNDDDDOOOOMMMM, SSSSEEEECCCCOOOONNNNDDDDSSSS, LLLLIIIINNNNEEEENNNNOOOO, or
  3779.                HHHHIIIISSSSTTTTCCCCMMMMDDDD are unset, they lose their special properties,
  3780.                even if they are subsequently reset.  The exit status
  3781.                is true unless a _n_a_m_e does not exist or is non-
  3782.                unsettable.
  3783.  
  3784.           wwwwaaaaiiiitttt [_n]
  3785.                Wait for the specified process and return its
  3786.                termination status.  _n may be a process ID or a job
  3787.                specification; if a job spec is given, all processes in
  3788.                that job's pipeline are waited for.  If _n is not given,
  3789.                all currently active child processes are waited for,
  3790.                and the return status is zero.  If _n specifies a non-
  3791.                existant process or job, the return status is 127.
  3792.                Otherwise, the return status is the exit status of the
  3793.                last process or job waited for.
  3794.  
  3795.      IIIINNNNVVVVOOOOCCCCAAAATTTTIIIIOOOONNNN
  3796.           A _l_o_g_i_n _s_h_e_l_l is one whose first character of argument zero
  3797.           is a ----, or one started with the ----llllooooggggiiiinnnn flag.
  3798.  
  3799.           An _i_n_t_e_r_a_c_t_i_v_e shell is one whose standard input and output
  3800.           are both connected to terminals (as determined by
  3801.           _i_s_a_t_t_y(3)), or one started with the ----iiii option.  PPPPSSSS1111 is set
  3802.           and $$$$---- includes iiii if bbbbaaaasssshhhh is interactive, allowing a shell
  3803.           script or a startup file to test this state.
  3804.  
  3805.           Login shells:
  3806.             On login (subject to the ----nnnnoooopppprrrrooooffffiiiilllleeee option):
  3807.                   if /_e_t_c/_p_r_o_f_i_l_e exists, source it.
  3808.  
  3809.                   if ~/._b_a_s_h__p_r_o_f_i_l_e exists, source it,
  3810.                     else if ~/._b_a_s_h__l_o_g_i_n exists, source it,
  3811.                       else if ~/._p_r_o_f_i_l_e exists, source it.
  3812.  
  3813.             On exit:
  3814.                   if ~/._b_a_s_h__l_o_g_o_u_t exists, source it.
  3815.  
  3816.           Non-login interactive shells:
  3817.             On startup (subject to the ----nnnnoooorrrrcccc and ----rrrrccccffffiiiilllleeee options):
  3818.                   if ~/._b_a_s_h_r_c exists, source it.
  3819.  
  3820.           Non-interactive shells:
  3821.             On startup:
  3822.  
  3823.  
  3824.  
  3825.      Page 58                                          (printed 7/6/95)
  3826.  
  3827.  
  3828.  
  3829.  
  3830.  
  3831.  
  3832.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  3833.  
  3834.  
  3835.  
  3836.                   if the environment variable EEEENNNNVVVV is non-null, expand
  3837.                   it and source the file it names, as if the command
  3838.                           if [ "$ENV" ]; then . $ENV; fi
  3839.                   had been executed, but do not use PPPPAAAATTTTHHHH to search
  3840.                   for the pathname.  When not started in Posix mode, bash
  3841.                   looks for BBBBAAAASSSSHHHH____EEEENNNNVVVV before EEEENNNNVVVV.
  3842.  
  3843.           If Bash is invoked as sssshhhh, it tries to mimic the behavior of
  3844.           sssshhhh as closely as possible.  For a login shell, it attempts
  3845.           to source only /_e_t_c/_p_r_o_f_i_l_e and ~/._p_r_o_f_i_l_e, in that order.
  3846.           The ----nnnnoooopppprrrrooooffffiiiilllleeee option may still be used to disable this
  3847.           behavior.  A shell invoked as sssshhhh does not attempt to source
  3848.           any other startup files.
  3849.  
  3850.           When bbbbaaaasssshhhh is started in _p_o_s_i_x mode, as with the ----ppppoooossssiiiixxxx
  3851.           command line option, it follows the Posix standard for
  3852.           startup files.  In this mode, the EEEENNNNVVVV variable is expanded
  3853.           and that file sourced; no other startup files are read.
  3854.  
  3855.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  3856.           _B_a_s_h _F_e_a_t_u_r_e_s, Brian Fox and Chet Ramey
  3857.           _T_h_e _G_n_u _R_e_a_d_l_i_n_e _L_i_b_r_a_r_y, Brian Fox and Chet Ramey
  3858.           _T_h_e _G_n_u _H_i_s_t_o_r_y _L_i_b_r_a_r_y, Brian Fox and Chet Ramey
  3859.      Lennert
  3860.           _A _S_y_s_t_e_m _V _C_o_m_p_a_t_i_b_l_e _I_m_p_l_e_m_e_n_t_a_t_i_o_n _o_f _4._2_B_S_D _J_o_b _C_o_n_t_r_o_l, David
  3861.      _U_t_i_l_i_t_i_e_s, IEEE
  3862.           _P_o_r_t_a_b_l_e _O_p_e_r_a_t_i_n_g _S_y_s_t_e_m _I_n_t_e_r_f_a_c_e (_P_O_S_I_X) _P_a_r_t _2: _S_h_e_l_l _a_n_d
  3863.           _s_h(1), _k_s_h(1), _c_s_h(1)
  3864.           _e_m_a_c_s(1), _v_i(1)
  3865.           _r_e_a_d_l_i_n_e(3)
  3866.  
  3867.      FFFFIIIILLLLEEEESSSS
  3868.           /_b_i_n/_b_a_s_h
  3869.                The bbbbaaaasssshhhh executable
  3870.           /_e_t_c/_p_r_o_f_i_l_e
  3871.                The systemwide initialization file, executed for login
  3872.                shells
  3873.           ~/._b_a_s_h__p_r_o_f_i_l_e
  3874.                The personal initialization file, executed for login
  3875.                shells
  3876.           ~/._b_a_s_h_r_c
  3877.                The individual per-interactive-shell startup file
  3878.           ~/._i_n_p_u_t_r_c
  3879.                Individual _r_e_a_d_l_i_n_e initialization file
  3880.  
  3881.      AAAAUUUUTTTTHHHHOOOORRRRSSSS
  3882.                Brian Fox, Free Software Foundation (primary author)
  3883.                bfox@ai.MIT.Edu
  3884.  
  3885.                Chet Ramey, Case Western Reserve University
  3886.                chet@ins.CWRU.Edu
  3887.  
  3888.  
  3889.  
  3890.  
  3891.      Page 59                                          (printed 7/6/95)
  3892.  
  3893.  
  3894.  
  3895.  
  3896.  
  3897.  
  3898.      BBBBAAAASSSSHHHH((((1111))))                 GGGGNNNNUUUU ((((1111999999995555 MMMMaaaarrrr 9999))))                  BBBBAAAASSSSHHHH((((1111))))
  3899.  
  3900.  
  3901.  
  3902.      BBBBUUUUGGGG RRRREEEEPPPPOOOORRRRTTTTSSSS
  3903.           If you find a bug in bbbbaaaasssshhhh,,,, you should report it.  But first,
  3904.           you should make sure that it really is a bug, and that it
  3905.           appears in the latest version of bbbbaaaasssshhhh that you have.
  3906.  
  3907.           Once you have determined that a bug actually exists, mail a
  3908.           bug report to _b_a_s_h-_m_a_i_n_t_a_i_n_e_r_s@_p_r_e_p._a_i._M_I_T._E_d_u.  If you have
  3909.           a fix, you are welcome to mail that as well!  Suggestions
  3910.           and `philosophical' bug reports may be mailed to _b_u_g-
  3911.           _b_a_s_h@_p_r_e_p._a_i._M_I_T._E_d_u or posted to the Usenet newsgroup
  3912.           ggggnnnnuuuu....bbbbaaaasssshhhh....bbbbuuuugggg.
  3913.  
  3914.           ALL bug reports should include:
  3915.  
  3916.           The version number of bbbbaaaasssshhhh
  3917.           The hardware and operating system
  3918.           The compiler used to compile
  3919.           A description of the bug behaviour
  3920.           A short script or `recipe' which exercises the bug
  3921.  
  3922.           Comments and bug reports concerning this manual page should
  3923.           be directed to _c_h_e_t@_i_n_s._C_W_R_U._E_d_u.
  3924.  
  3925.      BBBBUUUUGGGGSSSS
  3926.           It's too big and too slow.
  3927.  
  3928.           There are some subtle differences between bbbbaaaasssshhhh and
  3929.           traditional versions of sssshhhh, mostly because of the PPPPOOOOSSSSIIIIXXXX
  3930.           specification.
  3931.  
  3932.           Aliases are confusing in some uses.
  3933.  
  3934.  
  3935.  
  3936.  
  3937.  
  3938.  
  3939.  
  3940.  
  3941.  
  3942.  
  3943.  
  3944.  
  3945.  
  3946.  
  3947.  
  3948.  
  3949.  
  3950.  
  3951.  
  3952.  
  3953.  
  3954.  
  3955.  
  3956.  
  3957.      Page 60                                          (printed 7/6/95)
  3958.  
  3959.  
  3960.  
  3961.